diff options
-rw-r--r-- | sc/source/core/data/clipcontext.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/column.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/column3.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/clipcontext.cxx b/sc/source/core/data/clipcontext.cxx index 47eca9167cf8..056c5a005a5c 100644 --- a/sc/source/core/data/clipcontext.cxx +++ b/sc/source/core/data/clipcontext.cxx @@ -192,7 +192,7 @@ void CopyFromClipContext::setSingleCell( const ScAddress& rSrcPos, const ScColum if (bBoolean) { // Check if this formula cell is a boolean cell, and if so, go ahead and paste it. - ScTokenArray* pCode = rSrcCell.mpFormula->GetCode(); + const ScTokenArray* pCode = rSrcCell.mpFormula->GetCode(); if (pCode && pCode->GetLen() == 1) { const formula::FormulaToken* p = pCode->FirstToken(); diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index 58f4e8faa29a..7e606ea2a6d6 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -1409,7 +1409,7 @@ class CopyByCloneHandler if (bCloneSpecialBoolean) { // See if the formula consists of =TRUE() or =FALSE(). - ScTokenArray* pCode = rSrcCell.GetCode(); + const ScTokenArray* pCode = rSrcCell.GetCode(); if (pCode && pCode->GetLen() == 1) { const formula::FormulaToken* p = pCode->FirstToken(); diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 329971d2b3bf..db46b236b853 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -974,7 +974,7 @@ public: if (bBoolean) { // See if the formula consists of =TRUE() or =FALSE(). - ScTokenArray* pCode = rSrcCell.GetCode(); + const ScTokenArray* pCode = rSrcCell.GetCode(); if (pCode && pCode->GetLen() == 1) { const formula::FormulaToken* p = pCode->FirstToken(); @@ -1225,7 +1225,7 @@ void lcl_AddCode( ScTokenArray& rArr, const ScFormulaCell* pCell ) { rArr.AddOpCode(ocOpen); - ScTokenArray* pCode = const_cast<ScFormulaCell*>(pCell)->GetCode(); + const ScTokenArray* pCode = pCell->GetCode(); if (pCode) { FormulaTokenArrayPlainIterator aIter(*pCode); |