diff options
Diffstat (limited to 'svl/source/misc/lockfilecommon.cxx')
-rw-r--r-- | svl/source/misc/lockfilecommon.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx index e27c1113d975..8daf3f3549b9 100644 --- a/svl/source/misc/lockfilecommon.cxx +++ b/svl/source/misc/lockfilecommon.cxx @@ -130,7 +130,7 @@ LockFileEntry LockFileCommon::ParseEntry( const uno::Sequence< sal_Int8 >& aBuff OUString LockFileCommon::ParseName( const uno::Sequence< sal_Int8 >& aBuffer, sal_Int32& io_nCurPos ) { - OStringBuffer aResult; + OStringBuffer aResult(128); bool bHaveName = false; bool bEscape = false; @@ -168,7 +168,7 @@ OUString LockFileCommon::ParseName( const uno::Sequence< sal_Int8 >& aBuffer, sa OUString LockFileCommon::EscapeCharacters( const OUString& aSource ) { - OUStringBuffer aBuffer; + OUStringBuffer aBuffer(aSource.getLength()*2); const sal_Unicode* pStr = aSource.getStr(); for ( sal_Int32 nInd = 0; nInd < aSource.getLength() && pStr[nInd] != 0; nInd++ ) { |