-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: plCreatable modernizing #520
Conversation
👍 |
Due to the massive application of |
oops, I either forgot about HS_OVERRIDE or it was added shortly after I started this. I'm happy to use HS_OVERRIDE if that's our intention. |
Did we ever figure out what needed to happen here? |
Going to update it to use |
* Use nullptr instead of nil * Use static_casts where applicable * Mark virtual methods in subclasses as override
Updated to use HS_OVERRIDE. |
return (plClassName*)plFactory::Create(plClassName##ClassIndex); \ | ||
#define CLASSNAME_REGISTER(plClassName) \ | ||
public: \ | ||
const char* ClassName() const override { \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed one :/
Mostly just changing the creatable macros to properly use C++-style casts, and the creatable types to use the
override
keyword properly.I started in NucleusLib, and then got distracted with investigating some of the old plKey loading stuff. Eventually we'll want all creatable classes in all libs to properly use
override
.Clang (and gcc) warn about missing overrides, so the goal is to have no override warnings.