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

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


 sc/source/core/data/documen4.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit bb843223c2da5c562d189358184c11993f7b65cc
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Mon Feb 18 00:04:24 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Tue Mar 5 22:33:58 2019 +0100

    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 at yahoo.com>

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


More information about the Libreoffice-commits mailing list