From 0edb6ea4ff09dc1787e42f6e59a07b190857921d Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Wed, 9 Sep 2015 07:56:01 +0200 Subject: sal_uInt16 to sal_Int32, constify/reduce OUStrings Change-Id: I123274309ecc4ba8d1aa605d3aadc37bb11df9a0 --- cui/source/customize/cfgutil.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'cui') diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index 03c4be85376c..3eb37ba97f35 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -1125,12 +1125,11 @@ void SfxConfigGroupListBox::SelectMacro( const SfxMacroInfoItem *pItem ) void SfxConfigGroupListBox::SelectMacro( const OUString& rBasic, const OUString& rMacro ) { - OUString aBasicName( rBasic ); - aBasicName += " "; - aBasicName += pImp->m_sMacros; - OUString aLib, aModule, aMethod; - sal_uInt16 nCount = comphelper::string::getTokenCount(rMacro, '.'); - aMethod = rMacro.getToken( nCount-1, '.' ); + const OUString aBasicName( rBasic + " " + pImp->m_sMacros ); + const sal_Int32 nCount = comphelper::string::getTokenCount(rMacro, '.'); + const OUString aMethod( rMacro.getToken( nCount-1, '.' ) ); + OUString aLib; + OUString aModule; if ( nCount > 2 ) { aLib = rMacro.getToken( 0, '.' ); -- cgit