filter/source/svg/svgwriter.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit e7a864ea3d62c6a11048da75e014cf2a9eff601f Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Wed Mar 13 19:13:08 2019 +0100 Commit: Matteo Casalin <matteo.casa...@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.casa...@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 ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits