summaryrefslogtreecommitdiff
path: root/shared/cplusplus/AST.h
diff options
context:
space:
mode:
authorRoberto Raggi <qtc-committer@nokia.com>2008-12-22 13:09:26 +0100
committerRoberto Raggi <qtc-committer@nokia.com>2008-12-22 13:09:26 +0100
commitae4725e954487052c84cb5e2b94dec0b08edd120 (patch)
treeee294354dbafaedc4641dfde8dea961d79781242 /shared/cplusplus/AST.h
parent753ddb7ce076a12df07b2f800fe785cf659277df (diff)
downloadqt-creator-ae4725e954487052c84cb5e2b94dec0b08edd120.tar.gz
Introduced CPlusPlus::Managed.
Managed is an helper base class that simplify the usage of memory pools.
Diffstat (limited to 'shared/cplusplus/AST.h')
-rw-r--r--shared/cplusplus/AST.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/shared/cplusplus/AST.h b/shared/cplusplus/AST.h
index fd7cec40de..c4b0f7fe76 100644
--- a/shared/cplusplus/AST.h
+++ b/shared/cplusplus/AST.h
@@ -55,12 +55,12 @@
#include "CPlusPlusForwardDeclarations.h"
#include "ASTfwd.h"
-#include <new>
+#include "MemoryPool.h"
CPLUSPLUS_BEGIN_HEADER
CPLUSPLUS_BEGIN_NAMESPACE
-class CPLUSPLUS_EXPORT AST
+class CPLUSPLUS_EXPORT AST: public Managed
{
AST(const AST &other);
void operator =(const AST &other);
@@ -74,10 +74,6 @@ public:
static void accept(AST *ast, ASTVisitor *visitor)
{ if (ast) ast->accept(visitor); }
- void *operator new(size_t size, MemoryPool *pool);
- void operator delete(void *);
- void operator delete(void *, MemoryPool *);
-
virtual unsigned firstToken() const = 0;
virtual unsigned lastToken() const = 0;