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

@@ -46,6 +46,8 @@
#include <getopt.h>
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr char kHelpText[] =
@@ -113,11 +115,11 @@ CommandlineOptions::CommandlineOptions(int argc, char **argv)
#ifdef Q_OS_MACOS
// Remove -psn_xxx option that Mac passes when opened from Finder.
RemoveArg(QStringLiteral("-psn"), 1);
RemoveArg(u"-psn"_s, 1);
#endif
// Remove the -session option that KDE passes
RemoveArg(QStringLiteral("-session"), 2);
RemoveArg(u"-session"_s, 2);
}
@@ -306,10 +308,10 @@ bool CommandlineOptions::Parse() {
volume_modifier_ = -4;
break;
case LongOptions::Quiet:
log_levels_ = QStringLiteral("1");
log_levels_ = u"1"_s;
break;
case LongOptions::Verbose:
log_levels_ = QStringLiteral("3");
log_levels_ = u"3"_s;
break;
case LongOptions::LogLevels:
log_levels_ = OptArgToString(optarg);