From ab6222a5f8ac68f6ea27b89396cd5dd008785431 Mon Sep 17 00:00:00 2001 From: Ojas Anand Date: Sun, 3 May 2020 12:36:38 -0400 Subject: [PATCH] Use QStringLiteral to concatenate result and unit --- src/gui/entry/EntryModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/entry/EntryModel.cpp b/src/gui/entry/EntryModel.cpp index 4446cb7eb6..fae4469ba5 100644 --- a/src/gui/entry/EntryModel.cpp +++ b/src/gui/entry/EntryModel.cpp @@ -230,7 +230,7 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const for (int i = 0; i < unitsSize; i++) { if (resultInt < 1024 || i == unitsSize - 1) { resultInt = qRound(resultInt * 100) / 100.0; - result = QString::number(resultInt) + " " + units[i]; + result = QStringLiteral("%1 %2").arg(QString::number(resultInt), units[i]); break; } resultInt /= 1024.0;