diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-25 07:07:00 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-25 07:07:00 (GMT) |
commit | b89f94e7c9550af9aa1df55bd2d3a635229d77f1 (patch) | |
tree | 8c266e27142782ddc97ec7866c8773a0a785421b /tools/qmlviewer | |
parent | bfff04ba4fab92e1cfa57954c9df2d3b5ed807ef (diff) | |
download | Qt-b89f94e7c9550af9aa1df55bd2d3a635229d77f1.zip Qt-b89f94e7c9550af9aa1df55bd2d3a635229d77f1.tar.gz Qt-b89f94e7c9550af9aa1df55bd2d3a635229d77f1.tar.bz2 |
Fix with "new" argc/argv.
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r-- | tools/qmlviewer/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp index 38a00bb..ca98dbf 100644 --- a/tools/qmlviewer/main.cpp +++ b/tools/qmlviewer/main.cpp @@ -95,19 +95,19 @@ int main(int argc, char ** argv) if (arg == "-frameless") { frameless = true; } else if (arg == "-skin") { - skin = QString(argv[++i]); + skin = QString(newargv[++i]); } else if (arg == "-cache") { cache = true; } else if (arg == "-recordperiod") { - period = QString(argv[++i]).toInt(); + period = QString(newargv[++i]).toInt(); } else if (arg == "-recordfile") { - recordfile = QString(argv[++i]); + recordfile = QString(newargv[++i]); } else if (arg == "-record") { - recordargs << QString(argv[++i]); + recordargs << QString(newargv[++i]); } else if (arg == "-recorddither") { - dither = QString(argv[++i]); + dither = QString(newargv[++i]); } else if (arg == "-autorecord") { - QString range = QString(argv[++i]); + QString range = QString(newargv[++i]); int dash = range.indexOf('-'); if (dash > 0) autorecord_from = range.left(dash).toInt(); @@ -135,7 +135,7 @@ int main(int argc, char ** argv) translationFile = newargv[i + 1]; ++i; } else if (arg == "-L") { - libraries << QString(argv[++i]); + libraries << QString(newargv[++i]); } else if (arg[0] != '-') { fileName = arg; } else if (1 || arg == "-help") { |