Kaydet (Commit) 0edb6ea4 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to sal_Int32, constify/reduce OUStrings

Change-Id: I123274309ecc4ba8d1aa605d3aadc37bb11df9a0
üst fd8340fb
......@@ -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, '.' );
......
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