diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-01-30 15:12:34 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-30 15:13:02 +0100 |
commit | 1ba8986446dbaa77c9aed6d141ee99da74bf1afb (patch) | |
tree | 98a86155f1881bec881a037b3b035836c439f68f /forms | |
parent | do not try to concatenate two string literals using + (diff) | |
download | core-1ba8986446dbaa77c9aed6d141ee99da74bf1afb.tar.gz core-1ba8986446dbaa77c9aed6d141ee99da74bf1afb.zip |
fix for the awkward OUString::replaceAll() behaviour
Change-Id: I6ee919bb17ea7eb29cb9cfc0fc69d02d728d9a0f
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/resourcehelper.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/forms/source/xforms/resourcehelper.cxx b/forms/source/xforms/resourcehelper.cxx index a39f767e7fa6..50cd74f54672 100644 --- a/forms/source/xforms/resourcehelper.cxx +++ b/forms/source/xforms/resourcehelper.cxx @@ -55,12 +55,10 @@ OUString getResource( sal_uInt16 nResourceId, OUString sResource = frm::ResourceManager::loadString( nResourceId ); OSL_ENSURE( !sResource.isEmpty(), "resource not found?" ); - // use old style String class for search and replace, so we don't have to - // code this again. OUString sString( sResource ); - sString.replaceAll( "$1", rInfo1 ); - sString.replaceAll( "$2", rInfo2 ); - sString.replaceAll( "$3", rInfo3 ); + sString = sString.replaceAll( "$1", rInfo1 ); + sString = sString.replaceAll( "$2", rInfo2 ); + sString = sString.replaceAll( "$3", rInfo3 ); return sString; } |