summary refs log tree commit diff
path: root/src/notifications/Manager.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/notifications/Manager.cpp
parentuse more literals (diff)
downloadnheko-d8ead9573b6fd45e386d54b9aaec4e1c335b10ec.tar.xz
Reduce allocations using QStringLiteral
Diffstat (limited to 'src/notifications/Manager.cpp')
-rw-r--r--src/notifications/Manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notifications/Manager.cpp b/src/notifications/Manager.cpp

index 5d51c6c8..f7bbb3f9 100644 --- a/src/notifications/Manager.cpp +++ b/src/notifications/Manager.cpp
@@ -23,12 +23,12 @@ NotificationsManager::getMessageTemplate(const mtx::responses::Notification &not } if (mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Emote) { - return QString("* %1 %2").arg(sender); + return QStringLiteral("* %1 %2").arg(sender); } else if (utils::isReply(notification.event)) { return tr("%1 replied: %2", "Format a reply in a notification. %1 is the sender, %2 the message") .arg(sender); } else { - return QString("%1: %2").arg(sender); + return QStringLiteral("%1: %2").arg(sender); } }