diff options
-rw-r--r-- | sc/inc/token.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/token.cxx | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx index ea2b8ae09432..0d54a4b03816 100644 --- a/sc/inc/token.hxx +++ b/sc/inc/token.hxx @@ -276,6 +276,7 @@ protected: public: ScMatrixCellResultToken( const ScConstMatrixRef& pMat, formula::FormulaToken* pUL ); ScMatrixCellResultToken( const ScMatrixCellResultToken& r ); + virtual ~ScMatrixCellResultToken(); virtual double GetDouble() const SAL_OVERRIDE; virtual svl::SharedString GetString() const SAL_OVERRIDE; virtual const ScMatrix* GetMatrix() const SAL_OVERRIDE; @@ -302,6 +303,7 @@ public: ScMatrixFormulaCellToken( SCCOL nC, SCROW nR, const ScConstMatrixRef& pMat, formula::FormulaToken* pUL ); ScMatrixFormulaCellToken( SCCOL nC, SCROW nR ); ScMatrixFormulaCellToken( const ScMatrixFormulaCellToken& r ); + virtual ~ScMatrixFormulaCellToken(); virtual bool operator==( const formula::FormulaToken& rToken ) const SAL_OVERRIDE; virtual FormulaToken* Clone() const SAL_OVERRIDE { return new ScMatrixFormulaCellToken(*this); } diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index a4f247317b08..ebfb8ca3834f 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -857,6 +857,8 @@ ScMatrixCellResultToken::ScMatrixCellResultToken( const ScMatrixCellResultToken& double ScMatrixCellResultToken::GetDouble() const { return xUpperLeft->GetDouble(); } +ScMatrixCellResultToken::~ScMatrixCellResultToken() {} + svl::SharedString ScMatrixCellResultToken::GetString() const { return xUpperLeft->GetString(); @@ -904,6 +906,8 @@ ScMatrixFormulaCellToken::ScMatrixFormulaCellToken( const ScMatrixFormulaCellTok xUpperLeft = xUpperLeft->Clone(); } +ScMatrixFormulaCellToken::~ScMatrixFormulaCellToken() {} + bool ScMatrixFormulaCellToken::operator==( const FormulaToken& r ) const { const ScMatrixFormulaCellToken* p = dynamic_cast<const ScMatrixFormulaCellToken*>(&r); |