summary refs log tree commit diff
path: root/src/ui/NhekoGlobalObject.cpp
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/ui/NhekoGlobalObject.cpp
parentuse more literals (diff)
downloadnheko-d8ead9573b6fd45e386d54b9aaec4e1c335b10ec.tar.xz
Reduce allocations using QStringLiteral
Diffstat (limited to 'src/ui/NhekoGlobalObject.cpp')
-rw-r--r--src/ui/NhekoGlobalObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp
index a93466d2..b6122ac9 100644
--- a/src/ui/NhekoGlobalObject.cpp
+++ b/src/ui/NhekoGlobalObject.cpp
@@ -29,7 +29,7 @@ Nheko::updateUserProfile()
 {
     if (cache::client() && cache::client()->isInitialized())
         currentUser_.reset(
-          new UserProfile("", utils::localUser(), ChatPage::instance()->timelineManager()));
+          new UserProfile(QLatin1String(""), utils::localUser(), ChatPage::instance()->timelineManager()));
     else
         currentUser_.reset();
     emit profileChanged();