summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-11-11 00:42:16 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-12-28 16:24:35 +0100
commit492b2dd3520827c0cd84145155244b49a7bd7229 (patch)
treeb28da8fff1647787b65f69c5650bfc0df25c9c7a /cui
parentd63d5babec686a13bb9fded02c157aab7925ddad (diff)
Reduce scope of variable
Change-Id: Ieabc790ec03470b77440bc10396b07b18441384b Reviewed-on: https://gerrit.libreoffice.org/65656 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/macroass.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx
index 520dac2b54ad..5f392652f64c 100644
--- a/cui/source/tabpages/macroass.cxx
+++ b/cui/source/tabpages/macroass.cxx
@@ -70,11 +70,10 @@ static sal_uInt16 aPageRg[] = {
static OUString ConvertToUIName_Impl( SvxMacro const *pMacro )
{
OUString aName( pMacro->GetMacName() );
- OUString aEntry;
if ( pMacro->GetLanguage() != "JavaScript" )
{
const sal_Int32 nCount = comphelper::string::getTokenCount(aName, '.');
- aEntry = aName.getToken( nCount-1, '.' );
+ OUString aEntry = aName.getToken( nCount-1, '.' );
if ( nCount > 2 )
{
aEntry += "(" + aName.getToken( 0, '.' ) + "." + aName.getToken( nCount-2, '.' ) + ")";