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
parent
4368179c37
commit
9218c8f4ea
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue