Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Dec 16, 2025

This change removes superfluous global references in singleton classes.

I did a pass on all singleton classes (as seen in GameEngine::init) and these are all I found.

TODO

  • Replicate in Generals

@xezon xezon added the Refactor Edits the code with insignificant behavior changes, is never user facing label Dec 16, 2025
@Caball009
Copy link

Caball009 commented Dec 17, 2025

Clang-Tidy should be able to help out here to find more cases, if any.

@xezon
Copy link
Author

xezon commented Dec 17, 2025

Clang-Tidy should be able to help out here to find more cases, if any.

Oh nice, I was not aware. Can someone check?

@bobtista
Copy link

Clang-Tidy should be able to help out here to find more cases, if any.

Oh nice, I was not aware. Can someone check?

I added another check to the plugin

Give it a try - I tested it on Weapon.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants