summary refs log tree commit diff
path: root/src/UserSettingsPage.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 04:28:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 04:52:52 +0100
commitd8ead9573b6fd45e386d54b9aaec4e1c335b10ec (patch)
tree514d00ee26e67fc8bfeff403858e7d4ef276e6e3 /src/UserSettingsPage.h
parentuse more literals (diff)
downloadnheko-d8ead9573b6fd45e386d54b9aaec4e1c335b10ec.tar.xz
Reduce allocations using QStringLiteral
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r--src/UserSettingsPage.h4
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_;