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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jan 13 10:00:12 UTC 2019


 xmloff/source/text/txtparai.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 577dbcf52108c37b266557079bab74691cd23fa1
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Dec 29 23:22:18 2018 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sun Jan 13 10:59:46 2019 +0100

    Avoid index for single getToken call
    
    Change-Id: Id7206487f96792ffe38611c36ac0e0e28bcc59b7
    Reviewed-on: https://gerrit.libreoffice.org/66222
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 565f4bdd2891..d79a6d85fa34 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -1874,10 +1874,7 @@ XMLParaContext::XMLParaContext(
     if( !aCondStyleName.isEmpty() )
         sStyleName = aCondStyleName;
     else if( !sClassNames.isEmpty() )
-    {
-        sal_Int32 nDummy = 0;
-        sStyleName = sClassNames.getToken( 0, ' ', nDummy );
-    }
+        sStyleName = sClassNames.getToken( 0, ' ' );
 }
 
 void XMLParaContext::EndElement()


More information about the Libreoffice-commits mailing list