diff options
Diffstat (limited to 'desktop/source/deployment/misc/dp_misc.cxx')
-rw-r--r-- | desktop/source/deployment/misc/dp_misc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx index a23855109c36..7b4aafb3b083 100644 --- a/desktop/source/deployment/misc/dp_misc.cxx +++ b/desktop/source/deployment/misc/dp_misc.cxx @@ -243,7 +243,7 @@ namespace { OUString encodeForRcFile( OUString const & str ) { // escape $\{} (=> rtl bootstrap files) - OUStringBuffer buf; + OUStringBuffer buf(64); sal_Int32 pos = 0; const sal_Int32 len = str.getLength(); for ( ; pos < len; ++pos ) { @@ -265,7 +265,7 @@ OUString encodeForRcFile( OUString const & str ) OUString makeURL( OUString const & baseURL, OUString const & relPath_ ) { - OUStringBuffer buf; + OUStringBuffer buf(128); if (baseURL.getLength() > 1 && baseURL[ baseURL.getLength() - 1 ] == '/') buf.append( std::u16string_view(baseURL).substr(0, baseURL.getLength() - 1) ); else |