summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-18 00:02:32 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-03-05 22:32:48 +0100
commita03c8081b55f1a156a4ef6795afe8daa702589e9 (patch)
treef73e81a91bf84c0ed4334b4749533ceaa57e9239 /sc
parentfe1322f8d009e45ef598ec9a8a3af8b8f738eb55 (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>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/compiler.cxx5
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;