basctl/source/basicide/bastype3.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5452f3bbf9de74497f4b1b1ff386fa1d6a4e7b7a
Author:     Matteo Casalin <matteo.casa...@yahoo.com>
AuthorDate: Fri Nov 23 21:57:29 2018 +0100
Commit:     Matteo Casalin <matteo.casa...@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.casa...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to