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:
Axel Dörfler 2003-02-25 03:01:39 +00:00
parent eabe73689f
commit 4c94430a7e

View File

@ -91,6 +91,7 @@ union value {
class Term {
public:
Term(int8 op) : fOp(op), fParent(NULL) {}
virtual ~Term() {}
int8 Op() const { return fOp; }
@ -127,7 +128,7 @@ class Term {
class Equation : public Term {
public:
Equation(char **expr);
~Equation();
virtual ~Equation();
virtual status_t InitCheck();
@ -175,7 +176,7 @@ class Equation : public Term {
class Operator : public Term {
public:
Operator(Term *,int8,Term *);
~Operator();
virtual ~Operator();
Term *Left() const { return fLeft; }
Term *Right() const { return fRight; }