[Libreoffice-commits] .: formula/source

Eike Rathke erack at kemper.freedesktop.org
Sun Sep 11 09:14:23 PDT 2011


 formula/source/core/api/FormulaCompiler.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 795662c5876194013b894b0b5a72fdc01dc1c604
Author: Eike Rathke <erack at erack.de>
Date:   Sun Sep 11 17:09:32 2011 +0200

    ensureCapacity doesn't need to be done twice

diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 8108f11..e961bf6 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) )


More information about the Libreoffice-commits mailing list