summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2010-03-26 13:55:27 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-03-26 13:56:42 (GMT)
commit6829ee30f02f162bbb399000c853c8d680f8f8de (patch)
treed96f6c35f6c93855975d51742d29e76dbd5da2e2 /qmake
parent5de7a8578cf5ac563d8b17b2e1eadde06e469d8e (diff)
downloadQt-6829ee30f02f162bbb399000c853c8d680f8f8de.zip
Qt-6829ee30f02f162bbb399000c853c8d680f8f8de.tar.gz
Qt-6829ee30f02f162bbb399000c853c8d680f8f8de.tar.bz2
Compile on Maemo 5
qmake for Maemo 5 needs to be bootstrapped with an older gcc, which doesn't like foreach() in templates. Use a traditional for loop to iterate over the container instead.
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/symbian/symbian_makefile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/qmake/generators/symbian/symbian_makefile.h b/qmake/generators/symbian/symbian_makefile.h
index f9d3c24..289f9ae 100644
--- a/qmake/generators/symbian/symbian_makefile.h
+++ b/qmake/generators/symbian/symbian_makefile.h
@@ -71,8 +71,9 @@ public:
if (targetType == TypeExe) {
generatePkg = true;
} else {
- foreach(QString item, this->project->values("DEPLOYMENT")) {
- if (!this->project->values(item + ".sources").isEmpty()) {
+ const QStringList deployments = this->project->values("DEPLOYMENT");
+ for (int i = 0; i < deployments.count(); ++i) {
+ if (!this->project->values(deployments.at(i) + ".sources").isEmpty()) {
generatePkg = true;
break;
}