summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column3.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-03-12 11:35:29 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-03-13 11:07:25 +0100
commitd68c1ca1010f5993f99c1991bfbd8454eaa1cd2c (patch)
treedca9628b117429423a6f3d2bce925c463e7d20f6 /sc/source/core/data/column3.cxx
parent0faf4e5c2e98219b17e042594710f6872bf6a615 (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/data/column3.cxx')
-rw-r--r--sc/source/core/data/column3.cxx4
1 files changed, 2 insertions, 2 deletions
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);