forked from qt-creator/qt-creator
tests/cpp-frontent: avoid implicit ascii conversions
Change-Id: Iadd84891958f12d1f87ebe4c87e58f9ebd989697 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -72,11 +72,11 @@ int main(int argc, char *argv[])
|
|||||||
bool optionVerbose = false;
|
bool optionVerbose = false;
|
||||||
|
|
||||||
// Process options & arguments
|
// Process options & arguments
|
||||||
if (args.contains("-v")) {
|
if (args.contains(QLatin1String("-v"))) {
|
||||||
optionVerbose = true;
|
optionVerbose = true;
|
||||||
args.removeOne("-v");
|
args.removeOne(QLatin1String("-v"));
|
||||||
}
|
}
|
||||||
const bool helpRequested = args.contains("-h") || args.contains("-help");
|
const bool helpRequested = args.contains(QLatin1String("-h")) || args.contains(QLatin1String("-help"));
|
||||||
if (args.isEmpty() || helpRequested) {
|
if (args.isEmpty() || helpRequested) {
|
||||||
printUsage();
|
printUsage();
|
||||||
return helpRequested ? EXIT_SUCCESS : EXIT_FAILURE;
|
return helpRequested ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
|
Reference in New Issue
Block a user