-
Notifications
You must be signed in to change notification settings - Fork 814
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 QString() with QStringLiteral() for better performance #7422
base: master
Are you sure you want to change the base?
Conversation
6e4bc82
to
bb6a140
Compare
Signed-off-by: Integral <[email protected]>
0772c18
to
e81a0d2
Compare
Signed-off-by: Integral <[email protected]>
Signed-off-by: Integral <[email protected]>
@claucambra Would you like to approve my PR? |
src/gui/wizard/owncloudsetuppage.cpp
Outdated
const auto serverDisplayString = QStringLiteral("%1 (%2)").arg(serverName, serverUrl); | ||
_ui.comboBox->addItem(serverDisplayString, serverUrl); | ||
_ui.comboBox->addItem(serverName, serverUrl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious - why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QStringLiteral()
constructs the QString
object during compilation, which avoids the runtime overhead of constructing QString
objects.
No description provided.