From 096e04ef05fda514df07845f066c1b590e63a3f2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 20 Jun 2005 17:59:00 +0000 Subject: Added virtual destructor, to silence a few more GCC 4 warnings svn-id: r18419 --- gui/object.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui') diff --git a/gui/object.h b/gui/object.h index 3ca5248228..5e81d5bb01 100644 --- a/gui/object.h +++ b/gui/object.h @@ -29,6 +29,7 @@ class CommandSender; class CommandReceiver { friend class CommandSender; protected: + virtual ~CommandReceiver() {} virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {} }; @@ -39,6 +40,7 @@ protected: CommandReceiver *_target; public: CommandSender(CommandReceiver *target) : _target(target) {} + virtual ~CommandSender() {} void setTarget(CommandReceiver *target) { _target = target; } CommandReceiver *getTarget() const { return _target; } -- cgit v1.2.3