diff options
author | Artur Dryomov <artur.dryomov@gmail.com> | 2013-04-16 19:33:24 +0300 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-04-17 10:01:35 +0000 |
commit | b80d8c695e6b6ded231e67ed9a80bcd1f1250c03 (patch) | |
tree | fbd2686e52603d484b12a836db2f8fb33ff79c32 /sdext | |
parent | c75eeddfb892918c13a19f7c534b73e423ff8d89 (diff) |
fdo#62096 - replace some O(U)String compareTo with ==
Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d
Reviewed-on: https://gerrit.libreoffice.org/3422
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/wrapper/wrapper.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index 87f2b85418db..35766d4c6044 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -297,7 +297,7 @@ uno::Reference<rendering::XPolyPolygon2D> Parser::readPath( double* pArea = NULL { const OString aSubPathMarker( "subpath" ); - if( 0 != readNextToken().compareTo( aSubPathMarker ) ) + if( readNextToken() != aSubPathMarker ) OSL_PRECOND(false, "broken path"); basegfx::B2DPolyPolygon aResult; @@ -313,7 +313,7 @@ uno::Reference<rendering::XPolyPolygon2D> Parser::readPath( double* pArea = NULL sal_Int32 nDummy=m_nCharIndex; OString aCurrToken( m_aLine.getToken(m_nNextToken,' ',nDummy) ); - while( m_nCharIndex != -1 && 0 != aCurrToken.compareTo(aSubPathMarker) ) + while( m_nCharIndex != -1 && aCurrToken != aSubPathMarker ) { sal_Int32 nCurveFlag; double nX, nY; @@ -634,15 +634,15 @@ uno::Sequence<beans::PropertyValue> Parser::readImageImpl() const sal_Int32 nImageSize( readInt32() ); OUString aFileName; - if( aToken.compareTo( aPngMarker ) == 0 ) + if( aToken == aPngMarker ) aFileName = aPngFile; - else if( aToken.compareTo( aJpegMarker ) == 0 ) + else if( aToken == aJpegMarker ) aFileName = aJpegFile; - else if( aToken.compareTo( aPbmMarker ) == 0 ) + else if( aToken == aPbmMarker ) aFileName = aPbmFile; else { - SAL_WARN_IF(aToken.compareTo( aPpmMarker ),"sdext.pdfimport","Invalid bitmap format"); + SAL_WARN_IF(aToken != aPpmMarker,"sdext.pdfimport","Invalid bitmap format"); aFileName = aPpmFile; } |