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

Core, UI, Windows: Removed excess converting C-string in params #18154

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

GermanAizek
Copy link
Contributor

Minor code cleaning from unnecessary calls c_str()

@hrydgard
Copy link
Owner

Did you find these with some static analyzer or some warning we should enable?

@GermanAizek
Copy link
Contributor Author

Did you find these with some static analyzer or some warning we should enable?

I building in Clion with Clang 16 compiler, maybe some warnings were included.

@hrydgard
Copy link
Owner

OK. Anyway, these should be safe - only time where removing .c_str() leads to badness is if you do it from a format string argument, and these all look good.

@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Sep 15, 2023
@hrydgard hrydgard added this to the v1.16.2 milestone Sep 15, 2023
@hrydgard hrydgard merged commit e829c97 into hrydgard:master Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants