summaryrefslogtreecommitdiff
path: root/qmake/generators/metamakefile.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-02-25 15:13:51 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-12 18:54:59 +0100
commitdd06f991af83a7897d1a085b3aa2e2e649dfe2f4 (patch)
tree2e68658e58d7a8108396b3c11b4dfdd28254b681 /qmake/generators/metamakefile.cpp
parent64d03e1c3400baf15a2e281142297aa8fe940d48 (diff)
downloadqtbase-dd06f991af83a7897d1a085b3aa2e2e649dfe2f4.tar.gz
actually use the temp variable we just assigned ...
Change-Id: I535a4bfc268a07d6b1813e47cdae862e5e459efc Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'qmake/generators/metamakefile.cpp')
-rw-r--r--qmake/generators/metamakefile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qmake/generators/metamakefile.cpp b/qmake/generators/metamakefile.cpp
index b0c3b0681d..a037a966f6 100644
--- a/qmake/generators/metamakefile.cpp
+++ b/qmake/generators/metamakefile.cpp
@@ -385,16 +385,16 @@ SubdirsMetaMakefileGenerator::write()
const QString &output_name = Option::output.fileName();
for(int i = 0; ret && i < subs.count(); i++) {
const Subdir *sub = subs.at(i);
- qmake_setpwd(subs.at(i)->input_dir);
- Option::output_dir = QFileInfo(subs.at(i)->output_dir).absoluteFilePath();
- Option::output.setFileName(subs.at(i)->output_file);
+ qmake_setpwd(sub->input_dir);
+ Option::output_dir = QFileInfo(sub->output_dir).absoluteFilePath();
+ Option::output.setFileName(sub->output_file);
if(i != subs.count()-1) {
for (int ind = 0; ind < sub->indent; ++ind)
printf(" ");
printf("Writing %s\n", QDir::cleanPath(Option::output_dir+"/"+
Option::output.fileName()).toLatin1().constData());
}
- if (!(ret = subs.at(i)->makefile->write()))
+ if (!(ret = sub->makefile->write()))
break;
//restore because I'm paranoid
qmake_setpwd(pwd);