forked from qt-creator/qt-creator
Ensure that the memory pool can be reused after a rewind and get rid of the segmented array.
This commit is contained in:
@@ -962,12 +962,11 @@ void generateASTPatternBuilder_h(const QDir &cplusplusDir)
|
||||
<< "class CPLUSPLUS_EXPORT ASTPatternBuilder" << endl
|
||||
<< "{" << endl
|
||||
<< " MemoryPool pool;" << endl
|
||||
<< " MemoryPool::State state;" << endl
|
||||
<< endl
|
||||
<< "public:" << endl
|
||||
<< " ASTPatternBuilder(): state(pool.state()) {}" << endl
|
||||
<< " ASTPatternBuilder() {}" << endl
|
||||
<< endl
|
||||
<< " void reset() { pool.rewind(state); };" << endl
|
||||
<< " void reset() { pool.reset(); };" << endl
|
||||
<< endl;
|
||||
|
||||
Control *control = AST_h_document->control();
|
||||
|
||||
Reference in New Issue
Block a user