diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-02-29 14:02:48 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-01 21:00:23 +0100 |
commit | c0e9041b6dc2cc46334df2dffe640f1ead1e0898 (patch) | |
tree | 64100d86b89918fae8a93d1717ab2ba1bc297f76 /qmake/property.h | |
parent | 6663b5ebac7f750a3fb53dc61fbfb466bebec931 (diff) | |
download | qtbase-c0e9041b6dc2cc46334df2dffe640f1ead1e0898.tar.gz qtbase-c0e9041b6dc2cc46334df2dffe640f1ead1e0898.tar.bz2 qtbase-c0e9041b6dc2cc46334df2dffe640f1ead1e0898.zip |
optimize QMakeProperty
make it table-driven and have it cache the immutable values from
QLibraryInfo.
Change-Id: I07ed89152aa964bc9edf4436ee7c42f99cc6bcd3
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'qmake/property.h')
-rw-r--r-- | qmake/property.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qmake/property.h b/qmake/property.h index d67d0ad09d..6195e482fb 100644 --- a/qmake/property.h +++ b/qmake/property.h @@ -44,6 +44,7 @@ #include <qglobal.h> #include <qstring.h> +#include <qhash.h> QT_BEGIN_NAMESPACE @@ -55,6 +56,9 @@ class QMakeProperty void initSettings(); QString keyBase(bool =true) const; QString value(QString, bool just_check); + + QHash<QString, QString> m_values; + public: QMakeProperty(); ~QMakeProperty(); |