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 /sdext | |
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 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/test/pdfunzip.cxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/style.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 732484fa0eb1..4a90b784fde9 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -552,7 +552,7 @@ void PDFDict::eraseValue( const OString& rName ) for( unsigned int i = 0; i < nEle; i++ ) { PDFName* pName = dynamic_cast<PDFName*>(m_aSubElements[i]); - if( pName && pName->m_aName.equals( rName ) ) + if( pName && pName->m_aName == rName ) { for( unsigned int j = i+1; j < nEle; j++ ) { diff --git a/sdext/source/pdfimport/test/pdfunzip.cxx b/sdext/source/pdfimport/test/pdfunzip.cxx index 186167126541..bcc81a1b6c65 100644 --- a/sdext/source/pdfimport/test/pdfunzip.cxx +++ b/sdext/source/pdfimport/test/pdfunzip.cxx @@ -331,7 +331,7 @@ int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile* i_pPDFF PDFName* pName = dynamic_cast<PDFName*>(map_it->second); if( ! pName ) continue; - if( ! pName->m_aName.equals( "FontDescriptor" ) ) + if( pName->m_aName != "FontDescriptor" ) continue; // the font name will be helpful, also there must be one in diff --git a/sdext/source/pdfimport/tree/style.cxx b/sdext/source/pdfimport/tree/style.cxx index f6074b1f46de..03473756ff2e 100644 --- a/sdext/source/pdfimport/tree/style.cxx +++ b/sdext/source/pdfimport/tree/style.cxx @@ -215,7 +215,7 @@ void StyleContainer::emit( EmitContext& rContext, { if( ! it->second.IsSubStyle ) { - if( it->second.Name.equals( "style:master-page" ) ) + if( it->second.Name == "style:master-page" ) aMasterPageSection.push_back( it->first ); else if( getStyleName( it->first ) == "standard" ) aOfficeStyleSection.push_back( it->first ); |