diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-23 00:45:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-23 00:45:09 +0100 |
commit | 1cad5e7b131a1896a8dcbd98504bb3ba3e373904 (patch) | |
tree | 9a789232f7d5a4d6feae6f4d6db29b45ef2b97dd /sdext | |
parent | bdf02789cba76da03dc4bb8e55e8ef5d3075e235 (diff) |
use OString::equalsL
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 1512fc3803e2..c286b44fe329 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -477,7 +477,7 @@ bool PDFContainer::emitSubElements( EmitContext& rWriteContext ) const if( rWriteContext.m_bDecrypt ) { const PDFName* pName = dynamic_cast<PDFName*>(m_aSubElements[i]); - if( pName && pName->m_aName.equals( rtl::OString("Encrypt") ) ) + if (pName && pName->m_aName.equalsL(RTL_CONSTASCII_STRINGPARAM("Encrypt"))) { i++; continue; @@ -714,7 +714,7 @@ bool PDFObject::getDeflatedStream( char** ppStream, unsigned int* pBytes, const } // is the (first) filter FlateDecode ? - if( pFilter && pFilter->m_aName.equals( "FlateDecode" ) ) + if (pFilter && pFilter->m_aName.equalsL(RTL_CONSTASCII_STRINGPARAM("FlateDecode"))) { bIsDeflated = true; } @@ -869,7 +869,7 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const if( it != pClone->m_pStream->m_pDict->m_aMap.end() ) { PDFName* pFilter = dynamic_cast<PDFName*>(it->second); - if( pFilter && pFilter->m_aName.equals( "FlateDecode" ) ) + if (pFilter && pFilter->m_aName.equalsL(RTL_CONSTASCII_STRINGPARAM("FlateDecode"))) pClone->m_pStream->m_pDict->eraseValue( "Filter" ); else { @@ -877,7 +877,7 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const if( pArray && ! pArray->m_aSubElements.empty() ) { pFilter = dynamic_cast<PDFName*>(pArray->m_aSubElements.front()); - if( pFilter && pFilter->m_aName.equals( "FlateDecode" ) ) + if (pFilter && pFilter->m_aName.equalsL(RTL_CONSTASCII_STRINGPARAM("FlateDecode"))) { delete pFilter; pArray->m_aSubElements.erase( pArray->m_aSubElements.begin() ); |