Base classes used polymorphically whose child classes have data members or

destructors must themselves have virtual destructors or Bad Things(TM)
happen.
This commit is contained in:
JoelKatz
2012-09-10 16:29:42 -07:00
parent b7f3baee15
commit 4faad38112
3 changed files with 5 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ protected:
public:
TransactionMetaNodeEntry(int type) : mType(type) { ; }
virtual ~TransactionMetaNodeEntry() { ; }
int getType() const { return mType; }
virtual Json::Value getJson(int) const = 0;