diff options
author | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-08-22 11:55:27 +0300 |
---|---|---|
committer | Anton Kudryavtsev <antkudr@mail.ru> | 2023-08-22 17:17:33 +0000 |
commit | 9218c8f4ea863f13c8f379ffdd64fc74d323937c (patch) | |
tree | cd12e55a6d766c968e8347260c5d3380e9826323 /src/corelib/tools/qcommandlineparser.cpp | |
parent | 4368179c37cae05d16109e319fc1c77490754c7d (diff) |
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>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
-rw-r--r-- | src/corelib/tools/qcommandlineparser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/tools/qcommandlineparser.cpp b/src/corelib/tools/qcommandlineparser.cpp index c1581a2721..42babfbb24 100644 --- a/src/corelib/tools/qcommandlineparser.cpp +++ b/src/corelib/tools/qcommandlineparser.cpp @@ -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)) { |