Kaydet (Commit) e7a864ea authored tarafından Matteo Casalin's avatar Matteo Casalin

Avoid using index for single getToken() call

Change-Id: Ice39b95ed5bb77a4989c838b51992c80ef37756f
Reviewed-on: https://gerrit.libreoffice.org/69244
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 48fc2fee
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment