summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-01-05 22:05:46 +0100
committerEike Rathke <erack@redhat.com>2016-01-05 22:24:33 +0100
commit64c599e06badd7225f86025ee552db812b0ae78b (patch)
treedd9fda87bf352b1570eaf2e1742cbf14c5a220fa /formula
parentefeef720de31fe0fab9013f954eac63fe49fa59d (diff)
for new'ed FormulaToken use FormulaTokenArray::Add()
... instead of AddToken() that just clones it again. Change-Id: I99b02b0924d0a0c070435501f8ecd45f030e9c2c (cherry picked from commit c3d2313eca8fdab9eb3b4c9a49fd14e255feb2c0)
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/token.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index 2cd8decdd41a..c16f3cad4332 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -1513,7 +1513,7 @@ FormulaTokenArray * FormulaTokenArray::RewriteMissing( const MissingConvention &
{
FormulaToken *pToken = new FormulaToken( svByte,
( pCur->GetOpCode() == ocCeil ? ocCeil_Math : ocFloor_Math ) );
- pNewArr->AddToken( *pToken );
+ pNewArr->Add( pToken );
}
else if (pCur->GetOpCode() == ocWeeknumOOo &&
rConv.getConvention() == MissingConvention::FORMULA_MISSING_CONVENTION_ODFF)
@@ -1529,7 +1529,7 @@ FormulaTokenArray * FormulaTokenArray::RewriteMissing( const MissingConvention &
* formula/source/core/resource/core_resource.src
* SC_OPCODE_WEEKNUM_OOO */
FormulaToken *pToken = new FormulaByteToken( ocIsoWeeknum, pCur->GetByte(), pCur->IsInForceArray());
- pNewArr->AddToken( *pToken );
+ pNewArr->Add( pToken );
}
else
pNewArr->AddToken( *pCur );