--- qsampler/trunk/src/qsamplerOptions.cpp 2019/08/13 10:19:32 3555 +++ qsampler/trunk/src/qsamplerOptions.cpp 2019/08/15 09:09:21 3556 @@ -286,15 +286,15 @@ { QTextStream out(stderr); const QString sEol = "\n\n"; - int iCmdArgs = 0; const int argc = args.count(); + int iCmdArgs = 0; - for (int i = 1; i < argc; i++) { + for (int i = 1; i < argc; ++i) { if (iCmdArgs > 0) { sSessionFile += " "; sSessionFile += args.at(i); - iCmdArgs++; + ++iCmdArgs; continue; } @@ -321,7 +321,7 @@ } sServerHost = sVal; if (iEqual < 0) - i++; + ++i; } else if (sArg == "-p" || sArg == "--port") { if (sVal.isNull()) { @@ -330,7 +330,7 @@ } iServerPort = sVal.toInt(); if (iEqual < 0) - i++; + ++i; } else if (sArg == "-?" || sArg == "--help") { print_usage(args.at(0)); @@ -356,7 +356,7 @@ // If we don't have one by now, // this will be the startup sesion file... sSessionFile += sArg; - iCmdArgs++; + ++iCmdArgs; } }