changeset 2913:20089602fcd9 draft

fix warnings: delete called on 'XX' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
author Wladimir J. van der Laan <laanwj@gmail.com>
date Sun, 15 Apr 2012 12:59:20 +0200
parents 99463a72dea3
children e7753ff7b516
files src/keystore.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keystore.h
+++ b/src/keystore.h
@@ -13,6 +13,8 @@
     mutable CCriticalSection cs_KeyStore;
 
 public:
+    virtual ~CKeyStore() {}
+
     virtual bool AddKey(const CKey& key) =0;
     virtual bool HaveKey(const CBitcoinAddress &address) const =0;
     virtual bool GetKey(const CBitcoinAddress &address, CKey& keyOut) const =0;