From c3d2313eca8fdab9eb3b4c9a49fd14e255feb2c0 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 5 Jan 2016 22:05:46 +0100 Subject: [PATCH] for new'ed FormulaToken use FormulaTokenArray::Add() ... instead of AddToken() that just clones it again. Change-Id: I99b02b0924d0a0c070435501f8ecd45f030e9c2c --- formula/source/core/api/token.cxx | 4 ++-- 1 file 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 );