We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TODO Tag in Code!
See app.cpp: std::vector<MainWindow*> s_windows;
app.cpp
std::vector<MainWindow*> s_windows;
This code throws a Clazy warning because the CTOR is non-trivial.
Here is an alternative:
std::vector<MainWindow*>& GetWindowList() noexcept { static `std::vector<MainWindow*> s_windows;` return s_windows; } // Replace all usage of "s_windows" with "GetWindowList()"
Open to other solutions too :)
The text was updated successfully, but these errors were encountered:
Optional:
Remove the other global statics. Global statics can cause all sorts of interesting issues...
Some people consider global statics a "code smell". If we can remove them easily, perhaps this is a good idea?
Sorry, something went wrong.
No branches or pull requests
TODO Tag in Code!
See
app.cpp
:std::vector<MainWindow*> s_windows;
This code throws a Clazy warning because the CTOR is non-trivial.
Here is an alternative:
Open to other solutions too :)
The text was updated successfully, but these errors were encountered: