diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-01-26 18:44:01 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-01-27 13:18:55 +0000 |
commit | b923b48eddaae21f700ce7ea5fc060f949058acf (patch) | |
tree | 44bfb6e461e8c8da1db52caac84797b923e93d34 /src/lib/corelib/buildgraph/qtmocscanner.h | |
parent | 31ab344cee3c43b7b2e0d6fa04df992c3655b5b3 (diff) |
QtMocScanner: construct file tags only once
The FileTag c'tor hashes its string argument.
Avoid doing this over and over again in a hot code path.
Change-Id: I91cbe246621f4643c1a81d805440f4729d65cbb7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/qtmocscanner.h')
-rw-r--r-- | src/lib/corelib/buildgraph/qtmocscanner.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/qtmocscanner.h b/src/lib/corelib/buildgraph/qtmocscanner.h index 806ec1f7b..e7d034b16 100644 --- a/src/lib/corelib/buildgraph/qtmocscanner.h +++ b/src/lib/corelib/buildgraph/qtmocscanner.h @@ -58,6 +58,7 @@ namespace qbs { namespace Internal { class Artifact; +struct CommonFileTags; class QtMocScanner { @@ -72,6 +73,7 @@ private: static QScriptValue js_apply(QScriptContext *ctx, QScriptEngine *engine, void *data); QScriptValue apply(QScriptEngine *engine, const Artifact *artifact); + const CommonFileTags &m_tags; const ResolvedProductPtr &m_product; QScriptValue m_targetScriptValue; const Logger &m_logger; |