summaryrefslogtreecommitdiff
path: root/basctl/source/basicide
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-11-23 21:57:29 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-12-28 19:29:03 +0100
commit5452f3bbf9de74497f4b1b1ff386fa1d6a4e7b7a (patch)
tree5564af337b568d3d1ef977e5cb83f089a660690c /basctl/source/basicide
parentb3c7bf54b56441441f88bf906f6d01cc522ffd3c (diff)
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@yahoo.com>
Diffstat (limited to 'basctl/source/basicide')
-rw-r--r--basctl/source/basicide/bastype3.cxx3
1 files changed, 1 insertions, 2 deletions
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;