diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-25 13:33:32 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-25 13:55:39 +0300 |
commit | 9bf8654b563110d7df2488f7c7114ef42e502903 (patch) | |
tree | 037e24a822d69719b1c0de41dd9edf472f21b54a /oox | |
parent | bb1132604721046c619d9918643f369dfa0706a4 (diff) |
WaE: class has virtual functions, but destructor is not virtual
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/diagram/diagramlayoutatoms.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.hxx b/oox/source/drawingml/diagram/diagramlayoutatoms.hxx index f06592056cf6..57b481cdb89a 100644 --- a/oox/source/drawingml/diagram/diagramlayoutatoms.hxx +++ b/oox/source/drawingml/diagram/diagramlayoutatoms.hxx @@ -85,6 +85,8 @@ typedef boost::shared_ptr< LayoutAtom > LayoutAtomPtr; class LayoutAtom { public: + virtual ~LayoutAtom() { } + /** visitor acceptance */ virtual void accept( LayoutAtomVisitor& ) = 0; @@ -115,6 +117,8 @@ public: mnRefType(-1), mnRefPointType(-1), mfFactor(1.0), mfValue(0.0), mnOperator(0) {} + virtual ~ConstraintAtom() { } + virtual void accept( LayoutAtomVisitor& ); void setFor( sal_Int32 nToken ) @@ -161,6 +165,8 @@ class AlgAtom public: AlgAtom() : mnType(0), maMap() {} + virtual ~AlgAtom() { } + typedef std::map<sal_Int32,sal_Int32> ParamMap; virtual void accept( LayoutAtomVisitor& ); @@ -185,6 +191,8 @@ class ForEachAtom public: explicit ForEachAtom(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttributes); + virtual ~ForEachAtom() { } + IteratorAttr & iterator() { return maIter; } virtual void accept( LayoutAtomVisitor& ); @@ -201,6 +209,8 @@ class ConditionAtom { public: explicit ConditionAtom(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttributes); + virtual ~ConditionAtom() + { } bool test(); virtual void accept( LayoutAtomVisitor& ); IteratorAttr & iterator() @@ -226,6 +236,8 @@ class ChooseAtom : public LayoutAtom { public: + virtual ~ChooseAtom() + { } virtual void accept( LayoutAtomVisitor& ); }; @@ -249,6 +261,7 @@ public: typedef boost::array< ::com::sun::star::uno::Any, 9 > VarMap; LayoutNode() : mnChildOrder(0) {} + virtual ~LayoutNode() { } virtual void accept( LayoutAtomVisitor& ); VarMap & variables() { return mVariables; } |