tests/cpp-frontent: avoid implicit ascii conversions

Change-Id: Iadd84891958f12d1f87ebe4c87e58f9ebd989697
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Fawzi Mohamed
2013-01-15 19:24:25 +01:00
parent 56e43ffb55
commit b9ddb34862

View File

@@ -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;