diff options
author | Andreas Kling <andreas.kling@nokia.com> | 2011-03-15 13:45:21 (GMT) |
---|---|---|
committer | Andreas Kling <andreas.kling@nokia.com> | 2011-03-15 15:50:20 (GMT) |
commit | 32d872a3456ecd7cb8c0f0437a7301e1c476bbd3 (patch) | |
tree | 156124ed4fecc5dcb8bb7b655a98ed990abcd4b8 /qmake | |
parent | 3dd9e6a40bc4131ebc35d367af69fd9197e19344 (diff) | |
download | Qt-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.cpp | 2 |
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(), |