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: use QString() as empty QString constructor #1003

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

Integral-Tech
Copy link
Contributor

@Integral-Tech Integral-Tech commented Oct 19, 2024

  • QString() calls the default constructor, which is very lightweight and optimized for creating an empty string. When using QString(), there is no allocation for string data,
    https://doc.qt.io/qt-6/qstring.html#QString

@ra3xdh ra3xdh merged commit eacf586 into ra3xdh:current Oct 21, 2024
7 checks passed
@ra3xdh
Copy link
Owner

ra3xdh commented Oct 21, 2024

Thanks! Merged.

@Integral-Tech Integral-Tech deleted the refactor-qstring branch October 21, 2024 09:46
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.

2 participants