From 67df8eb23b9f74d1368b0aff430f9423883a320d Mon Sep 17 00:00:00 2001 From: David Yip Date: Tue, 4 Jul 2006 20:35:26 +0000 Subject: switched UndoStackObserver / CompositeUndoStackObserver to use GC managed memory. Initial tests seem to check out okay (bzr r1352) --- src/composite-undo-stack-observer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/composite-undo-stack-observer.h') diff --git a/src/composite-undo-stack-observer.h b/src/composite-undo-stack-observer.h index 02d54eb76..7b6b693b6 100644 --- a/src/composite-undo-stack-observer.h +++ b/src/composite-undo-stack-observer.h @@ -14,6 +14,8 @@ #ifndef __COMPOSITE_UNDO_COMMIT_OBSERVER_H__ #define __COMPOSITE_UNDO_COMMIT_OBSERVER_H__ +#include "gc-alloc.h" +#include "gc-managed.h" #include "undo-stack-observer.h" #include @@ -32,7 +34,7 @@ public: /** * Structure for tracking UndoStackObservers. */ - struct UndoStackObserverRecord { + struct UndoStackObserverRecord : public GC::Managed<> { public: /** * Constructor. @@ -88,7 +90,7 @@ public: }; /// A list of UndoStackObserverRecords, used to aggregate multiple UndoStackObservers. - typedef std::list< UndoStackObserverRecord > UndoObserverRecordList; + typedef std::list< UndoStackObserverRecord, GC::Alloc< UndoStackObserverRecord, GC::MANUAL > > UndoObserverRecordList; /** * Constructor. -- cgit v1.2.3