[Libreoffice-commits] core.git: cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 15:24:58 UTC 2018
cui/source/tabpages/macroass.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 492b2dd3520827c0cd84145155244b49a7bd7229
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Nov 11 00:42:16 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Dec 28 16:24:35 2018 +0100
Reduce scope of variable
Change-Id: Ieabc790ec03470b77440bc10396b07b18441384b
Reviewed-on: https://gerrit.libreoffice.org/65656
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
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, '.' ) + ")";
More information about the Libreoffice-commits
mailing list