aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/config/configcommandlineparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/config/configcommandlineparser.cpp')
-rw-r--r--src/app/config/configcommandlineparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/config/configcommandlineparser.cpp b/src/app/config/configcommandlineparser.cpp
index f4d0a142f..1ad0cc4b1 100644
--- a/src/app/config/configcommandlineparser.cpp
+++ b/src/app/config/configcommandlineparser.cpp
@@ -126,8 +126,8 @@ void ConfigCommandLineParser::parse(const QStringList &commandLine)
throw Error(Tr::tr("Profile properties must be provided."));
if (m_command.varNames.size() % 2 != 0)
throw Error(Tr::tr("Profile properties must be key/value pairs."));
- for (int i = 0; i < m_command.varNames.size(); ++i) {
- if (m_command.varNames.at(i).isEmpty())
+ for (const auto &varName : std::as_const(m_command.varNames)) {
+ if (varName.isEmpty())
throw Error(Tr::tr("Property names must not be empty."));
}
break;