Reduce allocations using QStringLiteral
This commit is contained in:
parent
a3c4ebc460
commit
d8ead9573b
46 changed files with 539 additions and 539 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue