Added a virtual desctructor for the Term base class, and added the virtual
keyword to the ones of its subclasses as well. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2842 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eabe73689f
commit
4c94430a7e
@ -91,6 +91,7 @@ union value {
|
|||||||
class Term {
|
class Term {
|
||||||
public:
|
public:
|
||||||
Term(int8 op) : fOp(op), fParent(NULL) {}
|
Term(int8 op) : fOp(op), fParent(NULL) {}
|
||||||
|
virtual ~Term() {}
|
||||||
|
|
||||||
int8 Op() const { return fOp; }
|
int8 Op() const { return fOp; }
|
||||||
|
|
||||||
@ -127,7 +128,7 @@ class Term {
|
|||||||
class Equation : public Term {
|
class Equation : public Term {
|
||||||
public:
|
public:
|
||||||
Equation(char **expr);
|
Equation(char **expr);
|
||||||
~Equation();
|
virtual ~Equation();
|
||||||
|
|
||||||
virtual status_t InitCheck();
|
virtual status_t InitCheck();
|
||||||
|
|
||||||
@ -175,7 +176,7 @@ class Equation : public Term {
|
|||||||
class Operator : public Term {
|
class Operator : public Term {
|
||||||
public:
|
public:
|
||||||
Operator(Term *,int8,Term *);
|
Operator(Term *,int8,Term *);
|
||||||
~Operator();
|
virtual ~Operator();
|
||||||
|
|
||||||
Term *Left() const { return fLeft; }
|
Term *Left() const { return fLeft; }
|
||||||
Term *Right() const { return fRight; }
|
Term *Right() const { return fRight; }
|
||||||
|
Loading…
Reference in New Issue
Block a user