summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorAndreas Kling <andreas.kling@nokia.com>2011-03-15 13:45:21 (GMT)
committerAndreas Kling <andreas.kling@nokia.com>2011-03-15 15:50:20 (GMT)
commit32d872a3456ecd7cb8c0f0437a7301e1c476bbd3 (patch)
tree156124ed4fecc5dcb8bb7b655a98ed990abcd4b8 /qmake
parent3dd9e6a40bc4131ebc35d367af69fd9197e19344 (diff)
downloadQt-32d872a3456ecd7cb8c0f0437a7301e1c476bbd3.zip
Qt-32d872a3456ecd7cb8c0f0437a7301e1c476bbd3.tar.gz
Qt-32d872a3456ecd7cb8c0f0437a7301e1c476bbd3.tar.bz2
Option::fixString: Don't recreate same QRegExp on each function call.
Reviewed-by: Oswald Buddenhagen
Diffstat (limited to 'qmake')
-rw-r--r--qmake/option.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp
index 28b764a..7bee659 100644
--- a/qmake/option.cpp
+++ b/qmake/option.cpp
@@ -635,7 +635,7 @@ Option::fixString(QString string, uchar flags)
//fix the environment variables
if(flags & Option::FixEnvVars) {
int rep;
- QRegExp reg_var("\\$\\(.*\\)");
+ static QRegExp reg_var("\\$\\(.*\\)");
reg_var.setMinimal(true);
while((rep = reg_var.indexIn(string)) != -1)
string.replace(rep, reg_var.matchedLength(),