Port to QStringLiteral operator

This commit is contained in:
Jonas Kvinge
2024-10-20 06:38:55 +02:00
parent 722035913e
commit ef9ef63f02
202 changed files with 2036 additions and 1889 deletions

View File

@@ -42,6 +42,8 @@
#include "utilities/strutils.h"
#include "freespacebar.h"
using namespace Qt::Literals::StringLiterals;
class QPaintEvent;
namespace {
@@ -239,7 +241,7 @@ QString FreeSpaceBar::TextForSize(const QString &prefix, const quint64 size) {
ret = Utilities::PrettySize(size);
}
else {
ret = QStringLiteral("0 MB");
ret = u"0 MB"_s;
}
if (!prefix.isEmpty()) ret.prepend(prefix + QLatin1Char(' '));