Use app.arguments().size() instead of argc in the for loop
authorStephen Kelly <stephen.kelly@kdab.com>
Wed, 20 Jun 2012 11:23:50 +0000 (13:23 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 21 Jun 2012 09:28:36 +0000 (11:28 +0200)
commit8cf717634871ee6b7acbbee603a3fe9777d5a46a
treed81417713d4a4db980810a9fb68ed3fcb337b6d3
parente5333359ef3c1e645e66f6ab59ba1ea08a68808e
Use app.arguments().size() instead of argc in the for loop

We're looping over the contents of arguments() anyway, and it is
more future proof to consider the size of the container in case
QCoreApplication ever consumes arguments like QApplication does.

Change-Id: Ic8ac49b910b13f8a6314447b132a788f6c38da20
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
src/linguist/lupdate/main.cpp