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/ReadReceiptsModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ReadReceiptsModel.cpp') diff --git a/src/ReadReceiptsModel.cpp b/src/ReadReceiptsModel.cpp index 066e850a..ed28ce48 100644 --- a/src/ReadReceiptsModel.cpp +++ b/src/ReadReceiptsModel.cpp @@ -112,7 +112,7 @@ ReadReceiptsModel::dateFormat(const QDateTime &then) const else if (days < 7) //: %1 is the name of the current day, %2 is the time the read receipt was read. The //: result may look like this: Monday, 7:15 - return QString("%1, %2").arg(then.toString("dddd"), + return QStringLiteral("%1, %2").arg(then.toString(QStringLiteral("dddd")), QLocale::system().toString(then.time(), QLocale::ShortFormat)); return QLocale::system().toString(then.time(), QLocale::ShortFormat); -- cgit 1.5.1