Skip to content

build: Move refcount.h include into WWCommon.h#1798

Merged
xezon merged 8 commits into
TheSuperHackers:mainfrom
xezon:xezon/refactor-refcount-include
Nov 5, 2025
Merged

build: Move refcount.h include into WWCommon.h#1798
xezon merged 8 commits into
TheSuperHackers:mainfrom
xezon:xezon/refactor-refcount-include

Conversation

@xezon

@xezon xezon commented Nov 4, 2025

Copy link
Copy Markdown

This change moves the refcount.h include into WWCommon.h

It is now always available across Engine and WWVegas and some of the tools.

@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Build Anything related to building, compiling labels Nov 4, 2025
@xezon

xezon commented Nov 4, 2025

Copy link
Copy Markdown
Author

Fought through various VC6 compile errors. Should be ok now.

Comment thread Core/Libraries/Source/WWVegas/WWLib/refcount.h
@bobtista

bobtista commented Nov 5, 2025

Copy link
Copy Markdown

LGTM. Should we add another PR to convert all NULLs to nullptr? There's like 1700 of them in WW3D2. and like 40,000 of them in the whole codebase

@xezon

xezon commented Nov 5, 2025

Copy link
Copy Markdown
Author

LGTM. Should we add another PR to convert all NULLs to nullptr? There's like 1700 of them in WW3D2. and like 40,000 of them in the whole codebase

Yes. There is a clang tidy feature for that:
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-nullptr.html

We would first need to get the clang tidy setup. There was such an attempt here: #1580

@Skyaero42 Skyaero42 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@xezon xezon merged commit 615aca6 into TheSuperHackers:main Nov 5, 2025
17 checks passed
@xezon xezon deleted the xezon/refactor-refcount-include branch November 5, 2025 21:48
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Anything related to building, compiling Minor Severity: Minor < Major < Critical < Blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants