From 795662c5876194013b894b0b5a72fdc01dc1c604 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sun, 11 Sep 2011 17:09:32 +0200 Subject: ensureCapacity doesn't need to be done twice --- formula/source/core/api/FormulaCompiler.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'formula/source') diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 8108f11ae926..e961bf6abf79 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1578,8 +1578,6 @@ void FormulaCompiler::CreateStringFromTokenArray( rtl::OUStringBuffer& rBuffer ) if( !pArr->GetLen() ) return; - rBuffer.ensureCapacity( pArr->GetLen() * 5 ); - FormulaTokenArray* pSaveArr = pArr; bool bODFF = FormulaGrammar::isODFF( meGrammar); if (bODFF || FormulaGrammar::isPODF( meGrammar) ) -- cgit