[Libreoffice-commits] core.git: basctl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 18:29:24 UTC 2018
basctl/source/basicide/bastype3.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 5452f3bbf9de74497f4b1b1ff386fa1d6a4e7b7a
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Nov 23 21:57:29 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Dec 28 19:29:03 2018 +0100
Do not use indexing for single getToken call
Change-Id: Id751a88350dca032cabce56b2cf03e054894d5e8
Reviewed-on: https://gerrit.libreoffice.org/65659
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
index 69cb6dea88cd..8e366b65b3e1 100644
--- a/basctl/source/basicide/bastype3.cxx
+++ b/basctl/source/basicide/bastype3.cxx
@@ -315,8 +315,7 @@ SbxVariable* SbTreeListBox::FindVariable(weld::TreeIter* pEntry)
// extract the module name from the string like "Sheet1 (Example1)"
if( bDocumentObjects )
{
- sal_Int32 nIndex = 0;
- aName = aName.getToken( 0, ' ', nIndex );
+ aName = aName.getToken( 0, ' ' );
}
pVar = static_cast<StarBASIC*>(pVar)->FindModule( aName );
break;
More information about the Libreoffice-commits
mailing list