Small moc cleanup: Pass lists by const reference
authorKent Hansen <kent.hansen@nokia.com>
Sun, 19 Feb 2012 17:52:19 +0000 (18:52 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 20 Feb 2012 10:28:10 +0000 (11:28 +0100)
commit44ab16f93d4007f0bbd1591e2830bae0332aeef2
tree4cee0a2d836761a16464fc07d324fac2724edcd1
parentfec37f0e9a9e4c18fd20f7b39919f08c7cb2139e
Small moc cleanup: Pass lists by const reference

generateFunctions() shouldn't (and doesn't) modify the list of
functions, so the list should be passed by const reference.

Change-Id: If5ff810e5623e734816c3089eb8b3fd4f54f2345
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/tools/moc/generator.cpp
src/tools/moc/generator.h