diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-18 00:02:32 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-03-05 22:32:48 +0100 |
commit | a03c8081b55f1a156a4ef6795afe8daa702589e9 (patch) | |
tree | f73e81a91bf84c0ed4334b4749533ceaa57e9239 | |
parent | fe1322f8d009e45ef598ec9a8a3af8b8f738eb55 (diff) |
Use indexed getToken()
Change-Id: I3f34ccb4253c587088f621f914b315e56f96008f
Reviewed-on: https://gerrit.libreoffice.org/68123
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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; |