diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 13:10:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 20:23:09 +0200 |
commit | 8c77b5670ec0ee6d550d5adba51b8ae76fe2c162 (patch) | |
tree | 9a905004341f2fae7bee3b45bd8826d95f801353 /filter/source | |
parent | 1dea7fb6be5f1ba64f680e3ad885afa1c99030bf (diff) |
use OString::operator== in preference to ::equals
Change-Id: Ib291521963a791a9c6175964571e9d9895072acf
Reviewed-on: https://gerrit.libreoffice.org/39646
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/graphicfilter/eps/eps.cxx | 10 | ||||
-rw-r--r-- | filter/source/xsltfilter/LibXSLTTransformer.cxx | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx index 2a591fd88fc6..2c4182ef66ac 100644 --- a/filter/source/graphicfilter/eps/eps.cxx +++ b/filter/source/graphicfilter/eps/eps.cxx @@ -1225,7 +1225,7 @@ void PSWriter::ImplWriteActions( const GDIMetaFile& rMtf, VirtualDevice& rVDev ) if( pGradAction ) ImplWriteGradient( pGradAction->GetPolyPolygon(), pGradAction->GetGradient(), rVDev ); } - else if ( pA->GetComment().equals("XPATHFILL_SEQ_END") ) + else if ( pA->GetComment() == "XPATHFILL_SEQ_END" ) { if ( aFillPath.Count() ) { @@ -1242,7 +1242,7 @@ void PSWriter::ImplWriteActions( const GDIMetaFile& rMtf, VirtualDevice& rVDev ) bool bSkipSequence = false; OString sSeqEnd; - if( pA->GetComment().equals( "XPATHSTROKE_SEQ_BEGIN" ) ) + if( pA->GetComment() == "XPATHSTROKE_SEQ_BEGIN" ) { sSeqEnd = "XPATHSTROKE_SEQ_END"; SvtGraphicStroke aStroke; @@ -1277,7 +1277,7 @@ void PSWriter::ImplWriteActions( const GDIMetaFile& rMtf, VirtualDevice& rVDev ) ImplPolyLine( aPath ); } } - else if (pA->GetComment().equals("XPATHFILL_SEQ_BEGIN")) + else if (pA->GetComment() == "XPATHFILL_SEQ_BEGIN") { sSeqEnd = "XPATHFILL_SEQ_END"; SvtGraphicFill aFill; @@ -1348,7 +1348,7 @@ void PSWriter::ImplWriteActions( const GDIMetaFile& rMtf, VirtualDevice& rVDev ) break; case MetaActionType::COMMENT : { - if (static_cast<const MetaCommentAction*>(pAction)->GetComment().equals("XPATHFILL_SEQ_END")) + if (static_cast<const MetaCommentAction*>(pAction)->GetComment() == "XPATHFILL_SEQ_END") bOk = false; } break; @@ -1391,7 +1391,7 @@ void PSWriter::ImplWriteActions( const GDIMetaFile& rMtf, VirtualDevice& rVDev ) if ( pMA->GetType() == MetaActionType::COMMENT ) { OString sComment( static_cast<MetaCommentAction*>(pMA)->GetComment() ); - if ( sComment.equals( sSeqEnd ) ) + if ( sComment == sSeqEnd ) break; } } diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx index d828cbd91991..5e1776246246 100644 --- a/filter/source/xsltfilter/LibXSLTTransformer.cxx +++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx @@ -496,31 +496,31 @@ namespace XSLT // ignore non-string parameters continue; } - if (nameUTF8.equals("StylesheetURL")) + if (nameUTF8 == "StylesheetURL") { m_styleSheetURL = valueUTF8; } - else if (nameUTF8.equals("SourceURL")) + else if (nameUTF8 == "SourceURL") { m_parameters.insert(pair<const char*, OString> ( PARAM_SOURCE_URL, valueUTF8)); } - else if (nameUTF8.equals("SourceBaseURL")) + else if (nameUTF8 == "SourceBaseURL") { m_parameters.insert(pair<const char*, OString> ( PARAM_SOURCE_BASE_URL, valueUTF8)); } - else if (nameUTF8.equals("TargetURL")) + else if (nameUTF8 == "TargetURL") { m_parameters.insert(pair<const char*, OString> ( PARAM_TARGET_URL, valueUTF8)); } - else if (nameUTF8.equals("TargetBaseURL")) + else if (nameUTF8 == "TargetBaseURL") { m_parameters.insert(pair<const char*, OString> ( PARAM_TARGET_BASE_URL, valueUTF8)); } - else if (nameUTF8.equals("DoctypePublic")) + else if (nameUTF8 == "DoctypePublic") { m_parameters.insert(pair<const char*, OString> ( PARAM_DOCTYPE_PUBLIC, valueUTF8)); |