summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-07-22 12:03:38 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-08-16 17:09:12 +0000
commit1e4ba2b4e5f4f16ed349452e1e592df461db29a4 (patch)
treea6068a8f8ba22e27cf7ab9ff602a6916b750c2d7 /qmake
parent839bab13557deb7d8f3ae09e2a0112787512b9f8 (diff)
Don't hold MakefileGenerator::Compiler in QList
MakefileGenerater::Compiler is larger than a void*, so holding it in QList is horribly inefficient. Fix by using QVector instead. Change-Id: I9ea173271caf9b4995d311c3864c6967da049380 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/makefile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index 0d1831d987..11b1c8329d 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -612,7 +612,7 @@ MakefileGenerator::init()
int x;
//build up a list of compilers
- QList<Compiler> compilers;
+ QVector<Compiler> compilers;
{
const char *builtins[] = { "OBJECTS", "SOURCES", "PRECOMPILED_HEADER", 0 };
for(x = 0; builtins[x]; ++x) {