diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-18 00:04:24 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-03-05 22:33:58 +0100 |
commit | bb843223c2da5c562d189358184c11993f7b65cc (patch) | |
tree | 49c8c478b5d6257749fc003f29637de487cc1585 /sc | |
parent | a03c8081b55f1a156a4ef6795afe8daa702589e9 (diff) |
Use already available index in following getToken call
Change-Id: I1617af942d59c59039e97400a8c39bbc36c3bceb
Reviewed-on: https://gerrit.libreoffice.org/68124
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen4.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx index d99561497257..b89f2f3d3ebd 100644 --- a/sc/source/core/data/documen4.cxx +++ b/sc/source/core/data/documen4.cxx @@ -1168,8 +1168,7 @@ void ScDocument::CompareDocument( ScDocument& rOtherDoc ) sal_Int32 nIndex = 0; OUStringBuffer aProText = aTemplate.getToken( 0, '#', nIndex ); aProText.append(aTabName); - nIndex = 0; - aProText.append(aTemplate.getToken( 1, '#', nIndex )); + aProText.append(aTemplate.getToken( 0, '#', nIndex )); ScProgress aProgress( GetDocumentShell(), aProText.makeStringAndClear(), 3*nThisEndRow, true ); // 2x FindOrder, 1x here long nProgressStart = 2*nThisEndRow; // start for here |