From 33e626bad79152925fc6d42c82525406e663addd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 17 Oct 2006 21:15:41 +0000 Subject: isomorphous fix for UndoTransaction death as was previously applied for MementoCommand (i.e. avoid delete this) git-svn-id: svn://localhost/ardour2/trunk@989 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/pbd/undo.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libs/pbd/pbd/undo.h') diff --git a/libs/pbd/pbd/undo.h b/libs/pbd/pbd/undo.h index eecd8ae49d..943c115af2 100644 --- a/libs/pbd/pbd/undo.h +++ b/libs/pbd/pbd/undo.h @@ -40,8 +40,11 @@ class UndoTransaction : public Command ~UndoTransaction (); void clear (); + bool empty() const; + bool clearing () const { return _clearing; } void add_command (Command* const); + void remove_command (Command* const); void operator() (); void undo(); @@ -66,8 +69,7 @@ class UndoTransaction : public Command std::list actions; struct timeval _timestamp; std::string _name; - bool clearing; - void remove_command (Command* const); + bool _clearing; }; class UndoHistory @@ -94,7 +96,7 @@ class UndoHistory void save_state(); private: - bool clearing; + bool _clearing; std::list UndoList; std::list RedoList; -- cgit v1.2.3