summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-05-06 19:54:07 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-05-20 20:19:07 (GMT)
commitbb0048d2e8536f1db5144ee99d122e2b3b102e04 (patch)
treeff046ad51c3bf554ef273570fd51482abc845205 /qmake/generators
parent4968b48ead666f96808daa40bb0e2637f50e3550 (diff)
downloadQt-bb0048d2e8536f1db5144ee99d122e2b3b102e04.zip
Qt-bb0048d2e8536f1db5144ee99d122e2b3b102e04.tar.gz
Qt-bb0048d2e8536f1db5144ee99d122e2b3b102e04.tar.bz2
simplify arcane conditional, once again
Reviewed-by: joerg
Diffstat (limited to 'qmake/generators')
-rw-r--r--qmake/generators/metamakefile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/metamakefile.cpp b/qmake/generators/metamakefile.cpp
index 9c64544..ad8750b 100644
--- a/qmake/generators/metamakefile.cpp
+++ b/qmake/generators/metamakefile.cpp
@@ -476,7 +476,7 @@ MetaMakefileGenerator::createMakefileGenerator(QMakeProject *proj, bool noIO)
mkfile = new NmakeMakefileGenerator;
} else if(gen == "MSBUILD") {
// Visual Studio >= v11.0
- if(proj->first("TEMPLATE").indexOf(QRegExp("^vc.*")) != -1 || proj->first("TEMPLATE").indexOf(QRegExp("^ce.*")) != -1)
+ if (proj->first("TEMPLATE").startsWith("vc"))
mkfile = new VcxprojGenerator;
else
mkfile = new NmakeMakefileGenerator;