diff options
author | David Robillard <d@drobilla.net> | 2007-07-16 18:32:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-16 18:32:31 +0000 |
commit | 94f329cd1e761ad164a2fb1e2a1bd12103099c2e (patch) | |
tree | 261853e8fa2f3b30652599be767ec9d99bd05c41 /libs/pbd/pbd/command.h | |
parent | 155bc17e2bf2bad2ca5aff4f9df83401821a5573 (diff) |
Fix formatting of command stuff to adhere to The Guidelines(TM).
git-svn-id: svn://localhost/ardour2/trunk@2130 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/command.h')
-rw-r--r-- | libs/pbd/pbd/command.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libs/pbd/pbd/command.h b/libs/pbd/pbd/command.h index 23bcf85b91..5d45f85ac3 100644 --- a/libs/pbd/pbd/command.h +++ b/libs/pbd/pbd/command.h @@ -1,5 +1,6 @@ /* - Copyright (C) 2006 Hans Fugal & Paul Davis + Copyright (C) 2006 Paul Davis + Author: Hans Fugal This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,13 +25,16 @@ class Command : public PBD::StatefulDestructible { - public: +public: virtual ~Command() {} + virtual void operator() () = 0; - virtual void undo() = 0; - virtual void redo() { (*this)(); } - virtual XMLNode &get_state(); - virtual int set_state(const XMLNode&) { /* noop */ return 0; } + + virtual void undo() = 0; + virtual void redo() { (*this)(); } + + virtual XMLNode &get_state(); + virtual int set_state(const XMLNode&) { /* noop */ return 0; } }; #endif // __lib_pbd_command_h_ |