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.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qmake/meta.cpp') diff --git a/qmake/meta.cpp b/qmake/meta.cpp index b01c7993cf..f5edff3ceb 100644 --- a/qmake/meta.cpp +++ b/qmake/meta.cpp @@ -46,7 +46,7 @@ QT_BEGIN_NAMESPACE -QMap > QMakeMetaInfo::cache_vars; +QHash > QMakeMetaInfo::cache_vars; QMakeMetaInfo::QMakeMetaInfo() { @@ -140,8 +140,8 @@ QMakeMetaInfo::readLibtoolFile(const QString &f) dirf = ""; else if(!dirf.isEmpty() && !dirf.endsWith(Option::output_dir)) dirf += Option::dir_sep; - QMap &v = proj.variables(); - for(QMap::Iterator it = v.begin(); it != v.end(); ++it) { + QHash &v = proj.variables(); + for(QHash::Iterator it = v.begin(); it != v.end(); ++it) { QStringList lst = it.value(); if(lst.count() == 1 && (lst.first().startsWith("'") || lst.first().startsWith("\"")) && lst.first().endsWith(QString(lst.first()[0]))) -- cgit v1.2.3