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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Mar 14 21:49:26 UTC 2019


 filter/source/svg/svgwriter.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit e7a864ea3d62c6a11048da75e014cf2a9eff601f
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Wed Mar 13 19:13:08 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Thu Mar 14 22:48:58 2019 +0100

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

diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index d0484e68825b..02e6af692b1e 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -422,9 +422,8 @@ void SVGAttributeWriter::setFontFamily()
     }
     else
     {
-        sal_Int32       nNextTokenPos( 0 );
         const OUString& rsFontName = rCurFont.GetFamilyName();
-        OUString sFontFamily( rsFontName.getToken( 0, ';', nNextTokenPos ) );
+        OUString sFontFamily( rsFontName.getToken( 0, ';' ) );
         FontPitch ePitch = rCurFont.GetPitch();
         if( ePitch == PITCH_FIXED )
         {
@@ -889,9 +888,8 @@ void SVGTextWriter::addFontAttributes( bool bIsTextContainer )
 
 void SVGTextWriter::implSetFontFamily()
 {
-    sal_Int32       nNextTokenPos( 0 );
     const OUString& rsFontName = maCurrentFont.GetFamilyName();
-    OUString sFontFamily( rsFontName.getToken( 0, ';', nNextTokenPos ) );
+    OUString sFontFamily( rsFontName.getToken( 0, ';' ) );
     FontPitch ePitch = maCurrentFont.GetPitch();
     if( ePitch == PITCH_FIXED )
     {


More information about the Libreoffice-commits mailing list