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:
		| @@ -38,13 +38,12 @@ namespace CPlusPlus { | ||||
| class CPLUSPLUS_EXPORT ASTPatternBuilder | ||||
| { | ||||
|     MemoryPool pool; | ||||
|     MemoryPool::State state; | ||||
|  | ||||
| public: | ||||
|     ASTPatternBuilder(): state(pool.state()) {} | ||||
|     ASTPatternBuilder() {} | ||||
|     ~ASTPatternBuilder() {} | ||||
|  | ||||
|     void reset() { pool.rewind(state); } | ||||
|     void reset() { pool.reset(); } | ||||
|  | ||||
|     SimpleSpecifierAST *SimpleSpecifier() | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user