[Libreoffice-commits] core.git: basctl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 15:45:39 UTC 2018
basctl/source/basicide/moduldlg.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 1af64604608ce3670fdc63d6e90645edf03e6337
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Nov 23 22:08:06 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Dec 28 16:45:17 2018 +0100
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 at yahoo.com>
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() ) );
More information about the Libreoffice-commits
mailing list