diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-23 21:57:29 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 19:29:03 +0100 |
commit | 5452f3bbf9de74497f4b1b1ff386fa1d6a4e7b7a (patch) | |
tree | 5564af337b568d3d1ef977e5cb83f089a660690c /basctl | |
parent | upload libcmis 0.5.2 (diff) | |
download | core-5452f3bbf9de74497f4b1b1ff386fa1d6a4e7b7a.tar.gz core-5452f3bbf9de74497f4b1b1ff386fa1d6a4e7b7a.zip |
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')
-rw-r--r-- | basctl/source/basicide/bastype3.cxx | 3 |
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; |