diff options
author | Eike Rathke <erack@erack.de> | 2011-09-11 17:09:32 +0200 |
---|---|---|
committer | Eike Rathke <erack@erack.de> | 2011-09-11 18:13:49 +0200 |
commit | 795662c5876194013b894b0b5a72fdc01dc1c604 (patch) | |
tree | 29aa82031ee80774acce9b3f820209a86f380dde /formula/source | |
parent | 5052b81c67253e71e2aee19f7b54200873bc36e8 (diff) |
ensureCapacity doesn't need to be done twice
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
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) ) |