diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 08:22:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 14:46:53 +0200 |
commit | 04112bce506c60254cb1cb8536f942c8adb5c7d6 (patch) | |
tree | 43b63df6f5b5eeb89abe70094b415ddfed152a9a /forms/source/xforms/resourcehelper.cxx | |
parent | loplugin:sequentialassign in editeng..extensions (diff) | |
download | core-04112bce506c60254cb1cb8536f942c8adb5c7d6.tar.gz core-04112bce506c60254cb1cb8536f942c8adb5c7d6.zip |
loplugin:sequentialassign in filter..fpicker
Change-Id: I4ba0e1e982897bd570612f6cda8ba1e6a9fa5dbd
Reviewed-on: https://gerrit.libreoffice.org/70700
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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; |