summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index e8b24708e555..515c1fad05b7 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -1872,16 +1872,16 @@ const FormulaToken* FormulaCompiler::CreateStringFromToken( OUStringBuffer& rBuf
{
// Suppress all TableRef related tokens, the resulting
// range was written by CreateStringFromIndex().
- const FormulaToken* p = pArr->PeekNext();
+ const FormulaToken* const p = pArr->PeekNext();
if (p && p->GetOpCode() == ocTableRefOpen)
{
- p = pArr->Next();
+ t = pArr->Next();
int nLevel = 0;
do
{
// Switch cases correspond with those in
// ScCompiler::HandleTableRef()
- switch (p->GetOpCode())
+ switch (t->GetOpCode())
{
case ocTableRefOpen:
++nLevel;
@@ -1903,7 +1903,7 @@ const FormulaToken* FormulaCompiler::CreateStringFromToken( OUStringBuffer& rBuf
nLevel = 0;
bNext = false;
}
- } while (nLevel && (p = pArr->Next()));
+ } while (nLevel && (t = pArr->Next()));
}
}
break;