From 5b04ddf424a657dbaa421cce13df4d6dac7fc622 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 Feb 2009 17:37:33 +0000 Subject: Make commands noncopyable (they are definitely not copy safe). memento_command.h style. git-svn-id: svn://localhost/ardour2/branches/3.0@4648 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/pbd/command.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/pbd/pbd/command.h') diff --git a/libs/pbd/pbd/command.h b/libs/pbd/pbd/command.h index 3fac531591..1521a60350 100644 --- a/libs/pbd/pbd/command.h +++ b/libs/pbd/pbd/command.h @@ -22,8 +22,9 @@ #define __lib_pbd_command_h__ #include +#include -class Command : public PBD::StatefulDestructible +class Command : public PBD::StatefulDestructible, public boost::noncopyable { public: virtual ~Command() { /* NOTE: derived classes must call drop_references() */ } -- cgit v1.2.3