diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-29 04:28:08 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-29 04:52:52 +0100 |
commit | d8ead9573b6fd45e386d54b9aaec4e1c335b10ec (patch) | |
tree | 514d00ee26e67fc8bfeff403858e7d4ef276e6e3 /src/UserSettingsPage.h | |
parent | use more literals (diff) | |
download | nheko-d8ead9573b6fd45e386d54b9aaec4e1c335b10ec.tar.xz |
Reduce allocations using QStringLiteral
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r-- | src/UserSettingsPage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h index f338c55b..0b2dc4fb 100644 --- a/src/UserSettingsPage.h +++ b/src/UserSettingsPage.h @@ -207,7 +207,7 @@ public: QString font() const { return font_; } QString emojiFont() const { - if (emojiFont_ == "Default") { + if (emojiFont_ == QLatin1String("Default")) { return tr("Default"); } @@ -292,7 +292,7 @@ signals: private: // Default to system theme if QT_QPA_PLATFORMTHEME var is set. QString defaultTheme_ = - QProcessEnvironment::systemEnvironment().value("QT_QPA_PLATFORMTHEME", "").isEmpty() + QProcessEnvironment::systemEnvironment().value(QStringLiteral("QT_QPA_PLATFORMTHEME"), QLatin1String("")).isEmpty() ? "light" : "system"; QString theme_; |