sc/source/core/data/clipcontext.cxx |    2 +-
 sc/source/core/data/column.cxx      |    2 +-
 sc/source/core/data/column3.cxx     |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit d68c1ca1010f5993f99c1991bfbd8454eaa1cd2c
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Tue Mar 12 11:35:29 2019 +0100
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Wed Mar 13 11:07:25 2019 +0100

    const correctness
    
    Change-Id: Ifcc5cfb8d66ae77bdf54b1a5457590c92a3fe093
    Reviewed-on: https://gerrit.libreoffice.org/69088
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.car...@gmx.de>

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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to