summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-07-30 16:22:34 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-07-30 16:22:34 -0700
commit04d940d86e997cb50daf9964893ada97b8dd0fda (patch)
treeea96cb08ef58c96cf55b6e3e8fa8dac562cb647f /src
parenta1858981fbe2f4bf8fa164b56d66be08c2f6a026 (diff)
downloadvyatta-cfg-04d940d86e997cb50daf9964893ada97b8dd0fda.tar.gz
vyatta-cfg-04d940d86e997cb50daf9964893ada97b8dd0fda.zip
make destructors virtual
Diffstat (limited to 'src')
-rw-r--r--src/cstore/cstore.hpp2
-rw-r--r--src/cstore/unionfs/cstore-unionfs.hpp2
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();