summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-02-12 10:37:01 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-02-13 12:34:34 +0000
commit405bdee0c9a58a5e2873a217aec84d54424ca9d5 (patch)
tree4cd9e34b269fe4278d4668cc1743e728477769c5 /qmake
parentb8a162ee97b4b4a225101cf7848e04810766c434 (diff)
save one call of filterByName
We already have saved this information in the loop above. Change-Id: Ic0e0a66b01e9ee001932d7d798d848abc746ef95 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/win32/msbuild_objectmodel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/qmake/generators/win32/msbuild_objectmodel.cpp b/qmake/generators/win32/msbuild_objectmodel.cpp
index e6be3334e4..1e70fcc850 100644
--- a/qmake/generators/win32/msbuild_objectmodel.cpp
+++ b/qmake/generators/win32/msbuild_objectmodel.cpp
@@ -1895,11 +1895,10 @@ void VCXProjectWriter::outputFileConfigs(VCProject &project, XmlOutput &xml, Xml
bool fileAdded = false;
for (int i = 0; i < project.SingleProjects.count(); ++i) {
- const VCFilter &filter = project.SingleProjects.at(i).filterByName(cleanFilterName);
- if (!filter.Config) // only if the filter is not empty
+ OutputFilterData *d = &data[i];
+ if (!d->filter.Config) // only if the filter is not empty
continue;
- if (outputFileConfig(&data[i], xml, xmlFilter, info.file, fileAdded,
- hasCustomBuildStep))
+ if (outputFileConfig(d, xml, xmlFilter, info.file, fileAdded, hasCustomBuildStep))
fileAdded = true;
}