Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Nov 4, 2025

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
Copy link
Author

xezon commented Nov 4, 2025

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

@bobtista
Copy link

bobtista commented Nov 5, 2025

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
Copy link
Author

xezon commented Nov 5, 2025

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

Copy link

@Skyaero42 Skyaero42 left a comment

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
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