Kaydet (Commit) 5452f3bb authored tarafından Matteo Casalin's avatar Matteo Casalin

Do not use indexing for single getToken call

Change-Id: Id751a88350dca032cabce56b2cf03e054894d5e8
Reviewed-on: https://gerrit.libreoffice.org/65659
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst b3c7bf54
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment