From d8ead9573b6fd45e386d54b9aaec4e1c335b10ec Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 29 Dec 2021 04:28:08 +0100 Subject: Reduce allocations using QStringLiteral --- src/notifications/Manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/notifications/Manager.cpp') 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 ¬ } 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); } } -- cgit 1.5.1