summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-03-13 19:13:08 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-03-14 22:48:58 +0100
commite7a864ea3d62c6a11048da75e014cf2a9eff601f (patch)
treec0f43dad319111b61133070c5eed3bd0a1735be3 /filter
parent48fc2fee15a7d9b43da430598e3acfa18e739250 (diff)
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@yahoo.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgwriter.cxx6
1 files changed, 2 insertions, 4 deletions
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 )
{