summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-01 14:01:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-01 16:12:20 +0200
commit38786f1df9ed8324a44c9f2afacb245744b54ebc (patch)
tree0d346ab1653836a2ac8beebcefa1ecabd005958b /basctl
parent18d4e89fdd63479e20d096c3a578153aa4328aee (diff)
loplugin:reducevarscope in basctl,basic
Change-Id: I32595921bf5ed26699bced3637302692c407d624 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103760 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/localizationmgr.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx
index 3a57c8de672d..45c6239bc5c7 100644
--- a/basctl/source/basicide/localizationmgr.cxx
+++ b/basctl/source/basicide/localizationmgr.cxx
@@ -302,10 +302,9 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
for( sal_Int32 i = 0 ; i < nLocaleCount ; i++ )
{
const Locale& rLocale = pLocales[ i ];
- OUString aResStr;
try
{
- aResStr = xStringResourceManager->resolveStringForLocale
+ OUString aResStr = xStringResourceManager->resolveStringForLocale
( aPureSourceIdStr, rLocale );
xStringResourceManager->removeIdForLocale( aPureSourceIdStr, rLocale );
xStringResourceManager->setStringForLocale( aPureIdStr, aResStr, rLocale );
@@ -515,10 +514,9 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{
const Locale& rLocale = pLocales[ iLocale ];
- OUString aResStr;
try
{
- aResStr = xStringResourceManager->resolveStringForLocale
+ OUString aResStr = xStringResourceManager->resolveStringForLocale
( aPureSourceIdStr, rLocale );
xStringResourceManager->removeIdForLocale( aPureSourceIdStr, rLocale );
xStringResourceManager->setStringForLocale( aPureIdStr, aResStr, rLocale );