diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 11:34:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-21 13:29:29 +0200 |
commit | 6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch) | |
tree | ff375d3a9e989c731a42a1255b8e1cede2bb6bbd /sdext | |
parent | 89633c6da1cde46983926dcc2e0f8e08de0e9378 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this:
if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aStr == "rem")
which compiles down to the same code.
Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
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 c1343d9c891b..4cef68866569 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -458,7 +458,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.equalsL(RTL_CONSTASCII_STRINGPARAM("Encrypt"))) + if (pName && pName->m_aName == "Encrypt") { i++; continue; @@ -695,7 +695,7 @@ bool PDFObject::getDeflatedStream( char** ppStream, unsigned int* pBytes, const } // is the (first) filter FlateDecode ? - if (pFilter && pFilter->m_aName.equalsL(RTL_CONSTASCII_STRINGPARAM("FlateDecode"))) + if (pFilter && pFilter->m_aName == "FlateDecode") { bIsDeflated = true; } @@ -850,7 +850,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.equalsL(RTL_CONSTASCII_STRINGPARAM("FlateDecode"))) + if (pFilter && pFilter->m_aName == "FlateDecode") pClone->m_pStream->m_pDict->eraseValue( "Filter" ); else { @@ -858,7 +858,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.equalsL(RTL_CONSTASCII_STRINGPARAM("FlateDecode"))) + if (pFilter && pFilter->m_aName == "FlateDecode") { delete pFilter; pArray->m_aSubElements.erase( pArray->m_aSubElements.begin() ); |