diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 12:42:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 15:53:13 +0200 |
commit | 43a6b59539ad573436f43303e9fbe17c12dc9c84 (patch) | |
tree | 24cbf3a9fc84ad38e17ed92ed0a50db48f20f2c5 /filter/source | |
parent | f2a1298ea409141a9190c7789b39546644084980 (diff) |
simplify some OUString compareTo calls
to either startsWith or == or !=
Change-Id: Ie4b4662f5b8e4532cbc1ab36910389e0b3d41ef0
Reviewed-on: https://gerrit.libreoffice.org/39750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source')
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index b5795870d8ad..6caf231ad57e 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -1146,7 +1146,7 @@ bool SVGTextWriter::nextTextPortion() sFieldName = pNames->copy( sServicePrefix.getLength() ); break; } - else if( 0 == pNames->compareTo( sPresentationServicePrefix, sPresentationServicePrefix.getLength() ) ) + else if( pNames->startsWith( sPresentationServicePrefix ) ) { // TextField found => postfix is field type! sFieldName = pNames->copy( sPresentationServicePrefix.getLength() ); |