Mercurial > projects > qtd
comparison generator/abstractmetabuilder.cpp @ 393:1049b01aebd2
Fixed generator segfaults on OS X 10.6.
Regarding the change to dgenerator.cpp, I am not actually sure if 0 is the correct value to pass, but it seems to work and the code which had been there before was just plain incorrect ? it read past the list boundaries.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 28 Aug 2010 02:55:55 +0200 |
parents | beb04f46ef4a |
children |
comparison
equal
deleted
inserted
replaced
392:6bd75093d3bb | 393:1049b01aebd2 |
---|---|
1721 newInfo.setQualifiedName(typei.qualifiedName()); | 1721 newInfo.setQualifiedName(typei.qualifiedName()); |
1722 newInfo.setReference(typei.isReference()); | 1722 newInfo.setReference(typei.isReference()); |
1723 newInfo.setVolatile(typei.isVolatile()); | 1723 newInfo.setVolatile(typei.isVolatile()); |
1724 | 1724 |
1725 AbstractMetaType *elementType = translateType(newInfo, ok); | 1725 AbstractMetaType *elementType = translateType(newInfo, ok); |
1726 if (!ok) | 1726 if (!(*ok)) |
1727 return 0; | 1727 return 0; |
1728 | 1728 |
1729 for (int i=typeInfo.arrays.size()-1; i>=0; --i) { | 1729 for (int i=typeInfo.arrays.size()-1; i>=0; --i) { |
1730 QString s = typeInfo.arrays.at(i); | 1730 QString s = typeInfo.arrays.at(i); |
1731 bool ok; | 1731 bool ok; |