changeset 9:da81cc7c2590

Add virtual destructor
author daedric <d43dr1c@gmail.com>
date Sat, 20 Mar 2010 11:48:34 +0100
parents ae71dacad48e
children 57b2a2925db8
files src/include/handler/INetworkHandler.hpp src/include/network/IEndPoint.hpp
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/include/handler/INetworkHandler.hpp	Sat Mar 20 00:37:39 2010 +0100
+++ b/src/include/handler/INetworkHandler.hpp	Sat Mar 20 11:48:34 2010 +0100
@@ -19,6 +19,8 @@
 {
 public:
 
+    virtual ~INetworkHandler(void){}
+
     virtual int     operator()(IEndPoint & endpoint, std::ios & stream) = 0;
 
 };
--- a/src/include/network/IEndPoint.hpp	Sat Mar 20 00:37:39 2010 +0100
+++ b/src/include/network/IEndPoint.hpp	Sat Mar 20 11:48:34 2010 +0100
@@ -23,6 +23,9 @@
     typedef int                 Socket;
 
 public:
+
+    virtual ~IEndPoint(void){}
+
     /**
      * @brief Get on wich port socket is connected
      * @return the port