Merge pull request #3253 from metalbass/patch-3

Added virtual destructors to some interfaces to fix issue 3095
This commit is contained in:
James Chen 2013-07-26 05:47:35 -07:00
commit 6c2e6e8cb0
1 changed files with 8 additions and 0 deletions

View File

@ -301,6 +301,8 @@ namespace sigslot {
class _connection_base0
{
public:
virtual ~_connection_base0() { }
virtual has_slots<mt_policy>* getdest() const = 0;
virtual void emit() = 0;
virtual _connection_base0* clone() = 0;
@ -386,6 +388,8 @@ namespace sigslot {
class _connection_base7
{
public:
virtual ~_connection_base7() { }
virtual has_slots<mt_policy>* getdest() const = 0;
virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type,
arg6_type, arg7_type) = 0;
@ -400,6 +404,8 @@ namespace sigslot {
class _connection_base8
{
public:
virtual ~_connection_base8() { }
virtual has_slots<mt_policy>* getdest() const = 0;
virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type,
arg6_type, arg7_type, arg8_type) = 0;
@ -413,6 +419,8 @@ namespace sigslot {
class _signal_base : public mt_policy
{
public:
virtual ~_signal_base() { }
virtual void slot_disconnect(has_slots<mt_policy>* pslot) = 0;
virtual void slot_duplicate(const has_slots<mt_policy>* poldslot, has_slots<mt_policy>* pnewslot) = 0;
};