Use indexed getToken()

Change-Id: I3f34ccb4253c587088f621f914b315e56f96008f
Reviewed-on: https://gerrit.libreoffice.org/68123
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
This commit is contained in:
Matteo Casalin
2019-02-18 00:02:32 +01:00
parent fe1322f8d0
commit a03c8081b5

View File

@@ -4044,8 +4044,9 @@ void ScCompiler::AutoCorrectParsedSymbol()
const ScAddress::Details aDetails( pConv->meConv, aPos ); const ScAddress::Details aDetails( pConv->meConv, aPos );
if ( nRefs == 2 ) if ( nRefs == 2 )
{ {
aRef[0] = aSymbol.getToken( 0, ':' ); sal_Int32 nIdx{ 0 };
aRef[1] = aSymbol.getToken( 1, ':' ); aRef[0] = aSymbol.getToken( 0, ':', nIdx );
aRef[1] = aSymbol.getToken( 0, ':', nIdx );
} }
else else
aRef[0] = aSymbol; aRef[0] = aSymbol;