Fix potential failures with inheritance 59/52059/2
authorAleksander Zdyb <a.zdyb@samsung.com>
Wed, 18 Nov 2015 14:34:32 +0000 (15:34 +0100)
committerAleksander Zdyb <a.zdyb@samsung.com>
Wed, 18 Nov 2015 14:38:32 +0000 (06:38 -0800)
Classes being inherited should generally have virtual destructors.
There was no problem at the moment, but it will help preventing failures
in the future.

Change-Id: I5ddd7c6bf5f8bd4751082244bc3730bc3d78691c

include/nether_Types.h

index 57cae36..84bc99b 100644 (file)
@@ -197,6 +197,7 @@ struct NetherConfig
 class NetherVerdictListener
 {
        public:
+               virtual ~NetherVerdictListener() = default;
                virtual bool verdictCast(const u_int32_t packetId, const NetherVerdict verdict) = 0;
 };
 
@@ -232,6 +233,7 @@ class NetherVerdictCaster
 class NetherProcessedPacketListener
 {
        public:
+               virtual ~NetherProcessedPacketListener() = default;
                virtual void packetReceived(const NetherPacket &packet) = 0;
 };