cmdlineparser: fixed append of premium options

This commit is contained in:
Daniel Marjamäki 2022-09-03 12:21:55 +02:00
parent 9306c6f329
commit 01b3b4cd0c
1 changed files with 1 additions and 1 deletions

View File

@ -610,7 +610,7 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
// Special Cppcheck Premium options // Special Cppcheck Premium options
else if (std::strncmp(argv[i], "--premium=", 10) == 0 && isCppcheckPremium()) { else if (std::strncmp(argv[i], "--premium=", 10) == 0 && isCppcheckPremium()) {
if (!mSettings->premiumArgs.size()) if (!mSettings->premiumArgs.empty())
mSettings->premiumArgs += " "; mSettings->premiumArgs += " ";
mSettings->premiumArgs += "--" + std::string(argv[i] + 10); mSettings->premiumArgs += "--" + std::string(argv[i] + 10);
} }