diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-03-12 11:35:29 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-03-13 11:07:25 +0100 |
commit | d68c1ca1010f5993f99c1991bfbd8454eaa1cd2c (patch) | |
tree | dca9628b117429423a6f3d2bce925c463e7d20f6 /sc/source/core | |
parent | 0faf4e5c2e98219b17e042594710f6872bf6a615 (diff) |
const correctness
Change-Id: Ifcc5cfb8d66ae77bdf54b1a5457590c92a3fe093
Reviewed-on: https://gerrit.libreoffice.org/69088
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/source/core')
-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); |