diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-09 20:20:29 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-10 22:04:08 +0100 |
commit | 9c4659266de6368adb50864e86cccbda50207a62 (patch) | |
tree | ce8ab54f0e42b112caa8e143ddd5d67a0798a02b /cui/source | |
parent | 94f79b3bf11a16d3fd020ed98bd5d17147520a67 (diff) |
Avoid getToken to just get last token
Change-Id: I56aa03bd727b8cdea38de7948a4dad4532ee214c
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index e906b3e40128..50ee47fdaba9 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -1077,7 +1077,7 @@ void SfxConfigGroupListBox::SelectMacro( const OUString& rBasic, { const OUString aBasicName(rBasic + " " + xImp->m_sMacros); const sal_Int32 nCount = comphelper::string::getTokenCount(rMacro, '.'); - const OUString aMethod( rMacro.getToken( nCount-1, '.' ) ); + const OUString aMethod( rMacro.copy(rMacro.lastIndexOf('.')+1) ); OUString aLib; OUString aModule; if ( nCount > 2 ) |