mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -12,6 +12,8 @@ public:
|
||||
virtual bool work(Interpreter* interpreter)=0;
|
||||
|
||||
virtual int getFee();
|
||||
|
||||
virtual ~Operation() { ; }
|
||||
};
|
||||
|
||||
// this is just an Int in the code
|
||||
|
||||
@@ -9,6 +9,8 @@ class Data
|
||||
public:
|
||||
typedef boost::shared_ptr<Data> pointer;
|
||||
|
||||
virtual ~Data(){ ; }
|
||||
|
||||
virtual bool isInt32(){ return(false); }
|
||||
virtual bool isFloat(){ return(false); }
|
||||
virtual bool isUint160(){ return(false); }
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user