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

refactor: replace non-empty QString constructors with QStringLiteral() #722

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

Integral-Tech
Copy link
Contributor

  • Qt provides a macro QStringLiteral(), which makes constructing QString objects from string literals more efficient.

@zjeffer zjeffer self-assigned this Nov 3, 2024
@zjeffer
Copy link
Collaborator

zjeffer commented Nov 3, 2024

@Integral-Tech Thanks for your contribution! Can you run the clang-formatter on mainwindow.cpp?

@nuttyartist
Copy link
Owner

Yeah, I was planning on doing that, thanks @Integral-Tech!

@Integral-Tech
Copy link
Contributor Author

@Integral-Tech Thanks for your contribution! Can you run the clang-formatter on mainwindow.cpp?

I have just run clang-format and submitted a new commit :)

@zjeffer zjeffer merged commit 94a9cac into nuttyartist:master Nov 3, 2024
11 checks passed
@Integral-Tech Integral-Tech deleted the qstring-refactor branch November 3, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants