summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcommandlineparser.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <anton.kudryavtsev@vk.team>2023-08-22 11:55:27 +0300
committerAnton Kudryavtsev <antkudr@mail.ru>2023-08-22 17:17:33 +0000
commit9218c8f4ea863f13c8f379ffdd64fc74d323937c (patch)
treecd12e55a6d766c968e8347260c5d3380e9826323 /src/corelib/tools/qcommandlineparser.cpp
parent4368179c37cae05d16109e319fc1c77490754c7d (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.cpp3
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)) {