diff options
author | hjk <qtc-committer@nokia.com> | 2012-05-10 10:35:51 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-10 10:59:29 (GMT) |
commit | 9ed7b04de7e607755fd47c917a5970e00bd9136e (patch) | |
tree | e1d7271e454fbac0f4841a2d6444fd061ac07f28 /examples/tutorials | |
parent | c5e2c6ff19e816d45f0763d7339b7856080407f0 (diff) | |
download | Qt-9ed7b04de7e607755fd47c917a5970e00bd9136e.zip Qt-9ed7b04de7e607755fd47c917a5970e00bd9136e.tar.gz Qt-9ed7b04de7e607755fd47c917a5970e00bd9136e.tar.bz2 |
getting started: better names for main() arguments
Change-Id: Ibc9cdd89503fc085ed0441ff34cbe2f729e67066
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'examples/tutorials')
5 files changed, 10 insertions, 10 deletions
diff --git a/examples/tutorials/gettingStarted/gsQt/part1/main.cpp b/examples/tutorials/gettingStarted/gsQt/part1/main.cpp index c9f8f836..dc1639f 100644 --- a/examples/tutorials/gettingStarted/gsQt/part1/main.cpp +++ b/examples/tutorials/gettingStarted/gsQt/part1/main.cpp @@ -41,9 +41,9 @@ #include <QtGui> -int main(int argv, char **args) +int main(int argc, char **argv) { - QApplication app(argv, args); + QApplication app(argc, argv); QTextEdit textEdit; textEdit.show(); diff --git a/examples/tutorials/gettingStarted/gsQt/part2/main.cpp b/examples/tutorials/gettingStarted/gsQt/part2/main.cpp index 40af868..9279a9d 100644 --- a/examples/tutorials/gettingStarted/gsQt/part2/main.cpp +++ b/examples/tutorials/gettingStarted/gsQt/part2/main.cpp @@ -40,9 +40,9 @@ #include <QtGui> -int main(int argv, char **args) +int main(int argc, char **argv) { - QApplication app(argv, args); + QApplication app(argc, argv); QTextEdit *textEdit = new QTextEdit; QPushButton *quitButton = new QPushButton("&Quit"); diff --git a/examples/tutorials/gettingStarted/gsQt/part3/main.cpp b/examples/tutorials/gettingStarted/gsQt/part3/main.cpp index 07e31c5..9e9338f 100644 --- a/examples/tutorials/gettingStarted/gsQt/part3/main.cpp +++ b/examples/tutorials/gettingStarted/gsQt/part3/main.cpp @@ -83,9 +83,9 @@ void Notepad::quit() qApp->quit(); } -int main(int argv, char **args) +int main(int argc, char **argv) { - QApplication app(argv, args); + QApplication app(argc, argv); Notepad notepad; notepad.show(); diff --git a/examples/tutorials/gettingStarted/gsQt/part4/main.cpp b/examples/tutorials/gettingStarted/gsQt/part4/main.cpp index 3ea8527..2af2c7b 100644 --- a/examples/tutorials/gettingStarted/gsQt/part4/main.cpp +++ b/examples/tutorials/gettingStarted/gsQt/part4/main.cpp @@ -94,9 +94,9 @@ void Notepad::save() } -int main(int argv, char **args) +int main(int argc, char **argv) { - QApplication app(argv, args); + QApplication app(argc, argv); Notepad notepad; notepad.show(); diff --git a/examples/tutorials/gettingStarted/gsQt/part5/main.cpp b/examples/tutorials/gettingStarted/gsQt/part5/main.cpp index 5a21558..337f6a1 100644 --- a/examples/tutorials/gettingStarted/gsQt/part5/main.cpp +++ b/examples/tutorials/gettingStarted/gsQt/part5/main.cpp @@ -120,9 +120,9 @@ void Notepad::save() } } -int main(int argv, char **args) +int main(int argc, char **argv) { - QApplication app(argv, args); + QApplication app(argc, argv); Notepad notepad; notepad.show(); |