qcommandlineparser: replace QSL with QL1SV

while touching code, use inline string, since there is only one user

Change-Id: I6e89c24d8a37da090203e6eaf690d9094c5aa76a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Anton Kudryavtsev 2023-08-22 11:55:27 +03:00 committed by Anton Kudryavtsev
parent 4368179c37
commit 9218c8f4ea
1 changed files with 1 additions and 2 deletions

View File

@ -674,7 +674,6 @@ bool QCommandLineParserPrivate::parse(const QStringList &args)
needsParsing = false;
bool error = false;
const QString doubleDashString(QStringLiteral("--"));
const QLatin1Char dashChar('-');
const QLatin1Char assignChar('=');
@ -698,7 +697,7 @@ bool QCommandLineParserPrivate::parse(const QStringList &args)
if (forcePositional) {
positionalArgumentList.append(argument);
} else if (argument.startsWith(doubleDashString)) {
} else if (argument.startsWith("--"_L1)) {
if (argument.size() > 2) {
QString optionName = argument.mid(2).section(assignChar, 0, 0);
if (registerFoundOption(optionName)) {