Kaydet (Commit) d68c1ca1 authored tarafından Luboš Luňák's avatar Luboš Luňák

const correctness

Change-Id: Ifcc5cfb8d66ae77bdf54b1a5457590c92a3fe093
Reviewed-on: https://gerrit.libreoffice.org/69088
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 0faf4e5c
...@@ -192,7 +192,7 @@ void CopyFromClipContext::setSingleCell( const ScAddress& rSrcPos, const ScColum ...@@ -192,7 +192,7 @@ void CopyFromClipContext::setSingleCell( const ScAddress& rSrcPos, const ScColum
if (bBoolean) if (bBoolean)
{ {
// Check if this formula cell is a boolean cell, and if so, go ahead and paste it. // 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) if (pCode && pCode->GetLen() == 1)
{ {
const formula::FormulaToken* p = pCode->FirstToken(); const formula::FormulaToken* p = pCode->FirstToken();
......
...@@ -1409,7 +1409,7 @@ class CopyByCloneHandler ...@@ -1409,7 +1409,7 @@ class CopyByCloneHandler
if (bCloneSpecialBoolean) if (bCloneSpecialBoolean)
{ {
// See if the formula consists of =TRUE() or =FALSE(). // See if the formula consists of =TRUE() or =FALSE().
ScTokenArray* pCode = rSrcCell.GetCode(); const ScTokenArray* pCode = rSrcCell.GetCode();
if (pCode && pCode->GetLen() == 1) if (pCode && pCode->GetLen() == 1)
{ {
const formula::FormulaToken* p = pCode->FirstToken(); const formula::FormulaToken* p = pCode->FirstToken();
......
...@@ -974,7 +974,7 @@ public: ...@@ -974,7 +974,7 @@ public:
if (bBoolean) if (bBoolean)
{ {
// See if the formula consists of =TRUE() or =FALSE(). // See if the formula consists of =TRUE() or =FALSE().
ScTokenArray* pCode = rSrcCell.GetCode(); const ScTokenArray* pCode = rSrcCell.GetCode();
if (pCode && pCode->GetLen() == 1) if (pCode && pCode->GetLen() == 1)
{ {
const formula::FormulaToken* p = pCode->FirstToken(); const formula::FormulaToken* p = pCode->FirstToken();
...@@ -1225,7 +1225,7 @@ void lcl_AddCode( ScTokenArray& rArr, const ScFormulaCell* pCell ) ...@@ -1225,7 +1225,7 @@ void lcl_AddCode( ScTokenArray& rArr, const ScFormulaCell* pCell )
{ {
rArr.AddOpCode(ocOpen); rArr.AddOpCode(ocOpen);
ScTokenArray* pCode = const_cast<ScFormulaCell*>(pCell)->GetCode(); const ScTokenArray* pCode = pCell->GetCode();
if (pCode) if (pCode)
{ {
FormulaTokenArrayPlainIterator aIter(*pCode); FormulaTokenArrayPlainIterator aIter(*pCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment