diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-07 12:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 12:39:20 +0200 |
commit | daf177f703081d7afaa9b1701cf187c9a3e93ee5 (patch) | |
tree | 32e5bc14b5707777795ac26089c402cc3e93c2e3 /writerfilter | |
parent | 3ef7e85deb7afde6c9453c30be0a7893528a90a1 (diff) |
use more OUString::operator== in test..xmlsecurity
Change-Id: If5bdd1532be44a47ff7cc3b769be3ea585aea562
Reviewed-on: https://gerrit.libreoffice.org/39685
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/NumberingManager.cxx | 6 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 7fbefaf73568..8011c65baa88 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -2672,7 +2672,7 @@ void DomainMapper_Impl::ChainTextFrames() //if no mso-next-textbox, we are done. //if it points to itself, we are done. if( !msoIter->second.s_mso_next_textbox.isEmpty() - && !msoIter->second.s_mso_next_textbox.equals(msoIter->first) ) + && msoIter->second.s_mso_next_textbox != msoIter->first ) { ChainMap::iterator nextFinder=aTextFramesForChainingHelper.find(msoIter->second.s_mso_next_textbox); if( nextFinder != aTextFramesForChainingHelper.end() ) diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx index f223ba977ba7..6d044ae5d5c3 100644 --- a/writerfilter/source/dmapper/NumberingManager.cxx +++ b/writerfilter/source/dmapper/NumberingManager.cxx @@ -59,7 +59,7 @@ sal_Int32 lcl_findProperty( const uno::Sequence< beans::PropertyValue >& aProps, while ( nPos == -1 && i < nLen ) { - if ( aProps[i].Name.equals( sName ) ) + if ( aProps[i].Name == sName ) nPos = i; else i++; @@ -347,13 +347,13 @@ void ListLevel::AddParaProperties( uno::Sequence< beans::PropertyValue >* props sal_Int32 nLen = aParaProps.getLength( ); for ( sal_Int32 i = 0; i < nLen; i++ ) { - if ( !hasFirstLineIndent && aParaProps[i].Name.equals( sParaIndent ) ) + if ( !hasFirstLineIndent && aParaProps[i].Name == sParaIndent ) { aProps.realloc( aProps.getLength() + 1 ); aProps[aProps.getLength( ) - 1] = aParaProps[i]; aProps[aProps.getLength( ) - 1].Name = sFirstLineIndent; } - else if ( !hasIndentAt && aParaProps[i].Name.equals( sParaLeftMargin ) ) + else if ( !hasIndentAt && aParaProps[i].Name == sParaLeftMargin ) { aProps.realloc( aProps.getLength() + 1 ); aProps[aProps.getLength( ) - 1] = aParaProps[i]; diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 3ab46124a62e..b42e589e7ab5 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -1362,7 +1362,7 @@ void RTFDocumentImpl::text(OUString& rString) if (bRet) return; - if (!m_aIgnoreFirst.isEmpty() && m_aIgnoreFirst.equals(rString)) + if (!m_aIgnoreFirst.isEmpty() && m_aIgnoreFirst == rString) { m_aIgnoreFirst.clear(); return; |