diff options
author | Eike Rathke <erack@redhat.com> | 2016-08-25 14:08:45 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-08-25 15:51:53 +0200 |
commit | a7d645f27f4723f38769a5b079765fa98399e8a7 (patch) | |
tree | d460de94fc31358269153c2ca7143a154ac9cec2 /sc | |
parent | f26a37e4ad0b74c04b6c19c43c1ad209e6f92756 (diff) |
use PushTokenRef() instead of PushTempToken(const formula::FormulaToken&)
... which unnecessarily clones.
Change-Id: I06ecce94439c2923011f18f69be48a50048c6dde
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index 64b151d2ea9c..2d9ff53d912c 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -4394,10 +4394,10 @@ StackVar ScInterpreter::Interpret() // Not all functions pop all parameters in case an error is // generated. Clean up stack. Assumes that every function pushes a // result, may be arbitrary in case of error. - const FormulaToken* pLocalResult = pStack[ sp - 1 ]; + FormulaConstTokenRef xLocalResult = pStack[ sp - 1 ]; while (sp > nStackBase) Pop(); - PushTempToken( *pLocalResult ); + PushTokenRef( xLocalResult ); } bool bGotResult; @@ -4543,13 +4543,13 @@ StackVar ScInterpreter::Interpret() break; case svExternalSingleRef: { - ScExternalRefCache::TokenRef pToken; + FormulaTokenRef xToken; ScExternalRefCache::CellFormat aFmt; - PopExternalSingleRef(pToken, &aFmt); + PopExternalSingleRef(xToken, &aFmt); if (nGlobalError) break; - PushTempToken(*pToken); + PushTokenRef(xToken); if (aFmt.mbIsSet) { |