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>
This commit is contained in:
Marc Mutz 2015-07-22 12:03:38 +02:00
parent 839bab1355
commit 1e4ba2b4e5

View File

@ -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) {