Kaydet (Commit) 492b2dd3 authored tarafından Matteo Casalin's avatar Matteo Casalin

Reduce scope of variable

Change-Id: Ieabc790ec03470b77440bc10396b07b18441384b
Reviewed-on: https://gerrit.libreoffice.org/65656
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst d63d5bab
......@@ -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, '.' ) + ")";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment