From 19dc6cadea0168f72daff7c0ed679ccdac71a7d5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 29 Dec 2021 06:01:38 +0100 Subject: Reserve size of some containers we are filling --- src/ReadReceiptsModel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ReadReceiptsModel.cpp') diff --git a/src/ReadReceiptsModel.cpp b/src/ReadReceiptsModel.cpp index ed28ce48..15ac83e1 100644 --- a/src/ReadReceiptsModel.cpp +++ b/src/ReadReceiptsModel.cpp @@ -112,8 +112,9 @@ 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 QStringLiteral("%1, %2").arg(then.toString(QStringLiteral("dddd")), - QLocale::system().toString(then.time(), QLocale::ShortFormat)); + 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