summaryrefslogtreecommitdiffstats
path: root/src/undo-stack-observer.h
diff options
context:
space:
mode:
authorDavid Yip <yipdw@alumni.rose-hulman.edu>2006-07-04 20:35:26 +0000
committerdwyip <dwyip@users.sourceforge.net>2006-07-04 20:35:26 +0000
commit67df8eb23b9f74d1368b0aff430f9423883a320d (patch)
tree76a1fad199f2fc327fef6057530740d039dd17fa /src/undo-stack-observer.h
parentCreated NR::FilterSlot to handle pixblocks in rendering filters (diff)
downloadinkscape-67df8eb23b9f74d1368b0aff430f9423883a320d.tar.gz
inkscape-67df8eb23b9f74d1368b0aff430f9423883a320d.zip
switched UndoStackObserver / CompositeUndoStackObserver to use GC
managed memory. Initial tests seem to check out okay (bzr r1352)
Diffstat (limited to '')
-rw-r--r--src/undo-stack-observer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/undo-stack-observer.h b/src/undo-stack-observer.h
index cd17c4675..dbda2b980 100644
--- a/src/undo-stack-observer.h
+++ b/src/undo-stack-observer.h
@@ -14,6 +14,8 @@
#ifndef __UNDO_COMMIT_OBSERVER_H__
#define __UNDO_COMMIT_OBSERVER_H__
+#include "gc-managed.h"
+
namespace Inkscape {
class Event;
@@ -32,7 +34,7 @@ class Event;
* UndoStackObservers should not be used on their own. Instead, they should be registered
* with a CompositeUndoStackObserver.
*/
-class UndoStackObserver {
+class UndoStackObserver : public GC::Managed<> {
public:
UndoStackObserver() { }
virtual ~UndoStackObserver() { }