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

Use brace initializer instead of empty C string to return empty C++ string #763

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Oct 21, 2022

No description provided.

@AZero13 AZero13 changed the title Use brace initializer isntead of empty c string to return empty C++ string Use brace initializer instead of empty c string to return empty C++ string Oct 21, 2022
@AZero13 AZero13 changed the title Use brace initializer instead of empty c string to return empty C++ string Use brace initializer instead of empty C string to return empty C++ string Oct 21, 2022
@autoantwort
Copy link
Contributor

Imho with an empty string it is more obvious what the code is doing

@AZero13
Copy link
Contributor Author

AZero13 commented Oct 22, 2022

I mean it also passes in the string to a constructor when 0 initialization is the proper way to do it

@BillyONeal BillyONeal merged commit b89f945 into microsoft:main Oct 26, 2022
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.

4 participants