diff options
author | Eike Rathke <erack@redhat.com> | 2015-04-17 22:25:20 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-04-18 00:46:08 +0200 |
commit | 6f25c21eb5cf311d828b77e602a17390af19c962 (patch) | |
tree | ae0471313f3577b2cfe657924bd9bbe58cdc4693 /formula | |
parent | aecf1ea0c8ba2cbbe40754d48f22f0a58dbe0cf3 (diff) |
const all CreateString... FormulaToken*
Change-Id: I0e0f064357543e5dc86b178ce30ee005e5483e04
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 78861b85f65e..64121e6d6b52 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1762,7 +1762,7 @@ void FormulaCompiler::CreateStringFromTokenArray( OUStringBuffer& rBuffer ) if ( pArr->IsRecalcModeForced() ) rBuffer.append( '='); - FormulaToken* t = pArr->First(); + const FormulaToken* t = pArr->First(); while( t ) t = CreateStringFromToken( rBuffer, t, true ); @@ -1773,19 +1773,21 @@ void FormulaCompiler::CreateStringFromTokenArray( OUStringBuffer& rBuffer ) } } -FormulaToken* FormulaCompiler::CreateStringFromToken( OUString& rFormula, FormulaToken* pTokenP,bool bAllowArrAdvance ) +const FormulaToken* FormulaCompiler::CreateStringFromToken( OUString& rFormula, const FormulaToken* pTokenP, + bool bAllowArrAdvance ) { OUStringBuffer aBuffer; - FormulaToken* p = CreateStringFromToken( aBuffer, pTokenP, bAllowArrAdvance ); + const FormulaToken* p = CreateStringFromToken( aBuffer, pTokenP, bAllowArrAdvance ); rFormula += aBuffer.makeStringAndClear(); return p; } -FormulaToken* FormulaCompiler::CreateStringFromToken( OUStringBuffer& rBuffer, FormulaToken* pTokenP, bool bAllowArrAdvance ) +const FormulaToken* FormulaCompiler::CreateStringFromToken( OUStringBuffer& rBuffer, const FormulaToken* pTokenP, + bool bAllowArrAdvance ) { bool bNext = true; bool bSpaces = false; - FormulaToken* t = pTokenP; + const FormulaToken* t = pTokenP; OpCode eOp = t->GetOpCode(); if( eOp >= ocAnd && eOp <= ocOr ) { @@ -2116,23 +2118,23 @@ bool FormulaCompiler::HandleTableRef() return true; } -void FormulaCompiler::CreateStringFromSingleRef( OUStringBuffer& /*rBuffer*/, FormulaToken* /*pTokenP*/) const +void FormulaCompiler::CreateStringFromSingleRef( OUStringBuffer& /*rBuffer*/, const FormulaToken* /*pToken*/) const { } -void FormulaCompiler::CreateStringFromDoubleRef( OUStringBuffer& /*rBuffer*/, FormulaToken* /*pTokenP*/) const +void FormulaCompiler::CreateStringFromDoubleRef( OUStringBuffer& /*rBuffer*/, const FormulaToken* /*pToken*/) const { } -void FormulaCompiler::CreateStringFromIndex( OUStringBuffer& /*rBuffer*/, FormulaToken* /*pTokenP*/) const +void FormulaCompiler::CreateStringFromIndex( OUStringBuffer& /*rBuffer*/, const FormulaToken* /*pToken*/) const { } -void FormulaCompiler::CreateStringFromMatrix( OUStringBuffer& /*rBuffer*/, FormulaToken* /*pTokenP*/) const +void FormulaCompiler::CreateStringFromMatrix( OUStringBuffer& /*rBuffer*/, const FormulaToken* /*pToken*/) const { } -void FormulaCompiler::CreateStringFromExternal( OUStringBuffer& /*rBuffer*/, FormulaToken* /*pTokenP*/) const +void FormulaCompiler::CreateStringFromExternal( OUStringBuffer& /*rBuffer*/, const FormulaToken* /*pToken*/) const { } |