Skip to content
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

Fix more warnings. #3101

Merged
merged 2 commits into from
Aug 30, 2023
Merged

Conversation

louist103
Copy link
Contributor

@louist103 louist103 commented Aug 1, 2023

Fix format security warnings, Fix functions that return const, and fix a memory leak.

Build Artifacts

const uint32_t GetHintKey() const {
uint32_t GetHintKey() const {
Copy link
Contributor

Choose a reason for hiding this comment

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

In case anyone else didn't know because I had to look it up, const in front of a function declaration means it's returning a const reference. Since we aren't actually returning a reference here, I think the removed const keyword was doing basically nothing.

ImGui::Text(cosmeticOption.label.c_str());
ImGui::Text("%s", cosmeticOption.label.c_str());
Copy link
Contributor

Choose a reason for hiding this comment

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

Shame about this being a warning. It's just kinda making it more verbose for no real gain. Oh well.

@garrettjoecox garrettjoecox merged commit 4aadf4c into HarbourMasters:develop Aug 30, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants