diff options
Diffstat (limited to 'forms/source/xforms/resourcehelper.cxx')
-rw-r--r-- | forms/source/xforms/resourcehelper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/forms/source/xforms/resourcehelper.cxx b/forms/source/xforms/resourcehelper.cxx index 0e3cbdf00b66..371b707f8c85 100644 --- a/forms/source/xforms/resourcehelper.cxx +++ b/forms/source/xforms/resourcehelper.cxx @@ -54,8 +54,7 @@ OUString getResource(const char* pResourceId, OUString sResource = frm::ResourceManager::loadString(pResourceId); OSL_ENSURE( !sResource.isEmpty(), "resource not found?" ); - OUString sString( sResource ); - sString = sString.replaceAll( "$1", rInfo1 ); + OUString sString = sResource.replaceAll( "$1", rInfo1 ); sString = sString.replaceAll( "$2", rInfo2 ); sString = sString.replaceAll( "$3", rInfo3 ); return sString; |