diff options
| author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-18 15:21:07 +0100 |
|---|---|---|
| committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-18 15:23:13 +0100 |
| commit | 61a504c4273d01aecf1a149f5d9d8a3ab5e354c3 (patch) | |
| tree | 4417d9e1e2f67acd3c56ec351055072e21cb6a27 /src/shared/cplusplus/TranslationUnit.cpp | |
| parent | 1e2af0a77dcddd84de43879609733cd55302756f (diff) | |
| download | qt-creator-61a504c4273d01aecf1a149f5d9d8a3ab5e354c3.tar.gz | |
Ensure that the memory pool can be reused after a rewind and get rid of the segmented array.
Diffstat (limited to 'src/shared/cplusplus/TranslationUnit.cpp')
| -rw-r--r-- | src/shared/cplusplus/TranslationUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cplusplus/TranslationUnit.cpp b/src/shared/cplusplus/TranslationUnit.cpp index 3d40a3521d..f19b78d851 100644 --- a/src/shared/cplusplus/TranslationUnit.cpp +++ b/src/shared/cplusplus/TranslationUnit.cpp @@ -69,7 +69,7 @@ TranslationUnit::TranslationUnit(Control *control, const StringLiteral *fileId) _ast(0), _flags(0) { - _tokens = new Array<Token, 8>(); + _tokens = new std::vector<Token>(); _previousTranslationUnit = control->switchTranslationUnit(this); _pool = new MemoryPool(); } |
