[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Mar 5 21:33:20 UTC 2019


 sc/source/core/tool/compiler.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit a03c8081b55f1a156a4ef6795afe8daa702589e9
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Mon Feb 18 00:02:32 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Tue Mar 5 22:32:48 2019 +0100

    Use indexed getToken()
    
    Change-Id: I3f34ccb4253c587088f621f914b315e56f96008f
    Reviewed-on: https://gerrit.libreoffice.org/68123
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 5115f6a187bd..f2ea303e849b 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -4044,8 +4044,9 @@ void ScCompiler::AutoCorrectParsedSymbol()
                 const ScAddress::Details aDetails( pConv->meConv, aPos );
                 if ( nRefs == 2 )
                 {
-                    aRef[0] = aSymbol.getToken( 0, ':' );
-                    aRef[1] = aSymbol.getToken( 1, ':' );
+                    sal_Int32 nIdx{ 0 };
+                    aRef[0] = aSymbol.getToken( 0, ':', nIdx );
+                    aRef[1] = aSymbol.getToken( 0, ':', nIdx );
                 }
                 else
                     aRef[0] = aSymbol;


More information about the Libreoffice-commits mailing list