summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-11-23 22:04:41 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-12-28 16:44:09 +0100
commitd94e6be598ecd42807aa2e64cb2e613eb77f90a9 (patch)
treeecd9f0edc6e91bccfb03feb4a9e3d80abb73d48f /basctl
parent492b2dd3520827c0cd84145155244b49a7bd7229 (diff)
Do not use indexing for single getToken call
Change-Id: Id1d7385f927e0ef08f9a0a170420feccdcd75ed2 Reviewed-on: https://gerrit.libreoffice.org/65660 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/macrodlg.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index cd314bcb4ccd..f882d7a9542f 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -319,8 +319,7 @@ SbMethod* MacroChooser::CreateMacro()
// extract the module name from the string like "Sheet1 (Example1)"
if( aDesc.GetLibSubName() == IDEResId(RID_STR_DOCUMENT_OBJECTS) )
{
- sal_Int32 nIndex = 0;
- aModName = aModName.getToken( 0, ' ', nIndex );
+ aModName = aModName.getToken( 0, ' ' );
}
pModule = pBasic->FindModule( aModName );
}
@@ -627,8 +626,7 @@ IMPL_LINK(MacroChooser, ButtonHdl, weld::Button&, rButton, void)
// extract the module name from the string like "Sheet1 (Example1)"
if( aDesc.GetLibSubName() == IDEResId(RID_STR_DOCUMENT_OBJECTS) )
{
- sal_Int32 nIndex = 0;
- aMod = aMod.getToken( 0, ' ', nIndex );
+ aMod = aMod.getToken( 0, ' ' );
}
const OUString& aSub( aDesc.GetMethodName() );
SfxMacroInfoItem aInfoItem( SID_BASICIDE_ARG_MACROINFO, pBasMgr, aLib, aMod, aSub, OUString() );