From 04d940d86e997cb50daf9964893ada97b8dd0fda Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 30 Jul 2010 16:22:34 -0700 Subject: make destructors virtual --- src/cstore/cstore.hpp | 2 +- src/cstore/unionfs/cstore-unionfs.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp index 1d8a295..f34a8af 100644 --- a/src/cstore/cstore.hpp +++ b/src/cstore/cstore.hpp @@ -40,7 +40,7 @@ class Cstore { public: Cstore() {}; Cstore(string& env); - ~Cstore() {}; + virtual ~Cstore() {}; // constants static const string C_NODE_STATUS_DELETED; diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp index 8bec974..2da148e 100644 --- a/src/cstore/unionfs/cstore-unionfs.hpp +++ b/src/cstore/unionfs/cstore-unionfs.hpp @@ -35,7 +35,7 @@ class UnionfsCstore : public Cstore { public: UnionfsCstore(bool use_edit_level = false); UnionfsCstore(const string& session_id, string& env); - ~UnionfsCstore(); + virtual ~UnionfsCstore(); ////// public virtual functions declared in base class bool markSessionUnsaved(); -- cgit v1.2.3