summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-12-14 11:01:07 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-26 13:29:15 (GMT)
commit6b3502bb096a35e6bd882fb505f98e3e64e9be30 (patch)
treea5c320d90b770239ed1a289f0dd5b84ff0d5ec97 /qmake
parenteef98705e295bcebc4dc392536e43141d8c24a6d (diff)
downloadQt-6b3502bb096a35e6bd882fb505f98e3e64e9be30.zip
Qt-6b3502bb096a35e6bd882fb505f98e3e64e9be30.tar.gz
Qt-6b3502bb096a35e6bd882fb505f98e3e64e9be30.tar.bz2
simplify string ops
Reviewed-by: mariusSO
Diffstat (limited to 'qmake')
-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 81fd12e..ec26a99 100644
--- a/qmake/generators/metamakefile.cpp
+++ b/qmake/generators/metamakefile.cpp
@@ -466,7 +466,7 @@ MetaMakefileGenerator::createMakefileGenerator(QMakeProject *proj, bool noIO)
} else if(gen == "PROJECTBUILDER" || gen == "XCODE") {
mkfile = new ProjectBuilderMakefileGenerator;
} else if(gen == "MSVC.NET") {
- if(proj->first("TEMPLATE").indexOf(QRegExp("^vc.*")) != -1)
+ if (proj->first("TEMPLATE").startsWith("vc"))
mkfile = new VcprojGenerator;
else
mkfile = new NmakeMakefileGenerator;