diff options
author | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-05-13 15:26:42 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-05-24 12:38:53 +0000 |
commit | 11d957d04381c7162dd5621c61f9963580ec7041 (patch) | |
tree | a876f1ba96292d420562b281d3d623500e899da7 /qmake/project.h | |
parent | e45a9fe457a4e5e70bf4e62092b253675dc97819 (diff) |
make QMakeEvaluator::isActiveConfig() take a QStringRef argument
saves some more cheap but pointless conversions to QString.
this makes the introduction of the ProStringList::contains(QStringRef)
overload necessary.
Change-Id: Ic61993bd9a4b28fbba1b8e346345fd5f5636c6f0
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'qmake/project.h')
-rw-r--r-- | qmake/project.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qmake/project.h b/qmake/project.h index aa9f7dfb3b..9f3b9a56bc 100644 --- a/qmake/project.h +++ b/qmake/project.h @@ -64,6 +64,8 @@ public: int intValue(const ProKey &v, int defaultValue = 0) const; const ProValueMap &variables() const { return m_valuemapStack.first(); } ProValueMap &variables() { return m_valuemapStack.first(); } + bool isActiveConfig(const QString &config, bool regex = false) + { return QMakeEvaluator::isActiveConfig(QStringRef(&config), regex); } void dump() const; @@ -78,7 +80,6 @@ public: using QMakeEvaluator::propertyValue; using QMakeEvaluator::values; using QMakeEvaluator::first; - using QMakeEvaluator::isActiveConfig; using QMakeEvaluator::isHostBuild; using QMakeEvaluator::dirSep; |