[Libreoffice-commits] .: sdext/source
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Jun 23 01:09:24 PDT 2011
sdext/source/pdfimport/pdfparse/pdfentries.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 23e14654809917825fbdaf0a5b1547980f544a84
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jun 23 00:45:09 2011 +0100
use OString::equalsL
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
index 6b11fc7..3a6611a 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() );
More information about the Libreoffice-commits
mailing list