From 3e4f7ed5ed29c907815f5bae2628e417c340efbc Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 9 Jan 2012 19:25:44 +0100 Subject: QMap => QHash this should make the evaluator quite a lot faster. the total win for qtbase/src is only 6%, though. i made some effort to avoid that output files get randomized. however, i didn't bother to keep debug output sorted. Change-Id: Id9cef4674c0153c11ebbb65cb63bf8c229eb56e3 Reviewed-by: Joerg Bornemann Reviewed-by: Oswald Buddenhagen --- qmake/meta.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qmake/meta.h') diff --git a/qmake/meta.h b/qmake/meta.h index 9c0c85672b..d20fc97924 100644 --- a/qmake/meta.h +++ b/qmake/meta.h @@ -42,7 +42,7 @@ #ifndef META_H #define META_H -#include +#include #include #include @@ -52,9 +52,9 @@ class QMakeMetaInfo { bool readLibtoolFile(const QString &f); bool readPkgCfgFile(const QString &f); - QMap vars; + QHash vars; QString meta_type; - static QMap > cache_vars; + static QHash > cache_vars; void clear(); public: QMakeMetaInfo(); @@ -67,7 +67,7 @@ public: bool isEmpty(const QString &v); QStringList &values(const QString &v); QString first(const QString &v); - QMap &variables(); + QHash &variables(); }; inline bool QMakeMetaInfo::isEmpty(const QString &v) @@ -92,7 +92,7 @@ inline QString QMakeMetaInfo::first(const QString &v) #endif } -inline QMap &QMakeMetaInfo::variables() +inline QHash &QMakeMetaInfo::variables() { return vars; } inline bool QMakeMetaInfo::libExists(QString lib) -- cgit v1.2.3