diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-23 22:08:06 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 16:45:17 +0100 |
commit | 1af64604608ce3670fdc63d6e90645edf03e6337 (patch) | |
tree | 96a85f49f330474fa9e68a3efebd47fa2e84c295 /basctl/source | |
parent | d94e6be598ecd42807aa2e64cb2e613eb77f90a9 (diff) |
Do not use indexing for single getToken call
Change-Id: Ia5282e3c03dd4225fb1438300b8cad9c95be8721
Reviewed-on: https://gerrit.libreoffice.org/65661
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/moduldlg.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx index 273199fbfcbc..6c67b1116282 100644 --- a/basctl/source/basicide/moduldlg.cxx +++ b/basctl/source/basicide/moduldlg.cxx @@ -708,8 +708,7 @@ IMPL_LINK( ObjectPage, ButtonHdl, Button *, pButton, void ) // 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, ' ' ); } SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDesc.GetDocument(), aDesc.GetLibName(), aModName, TreeListBox::ConvertType( aDesc.GetType() ) ); |