summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/pdfparse
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:33:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:27 +0200
commitf88a1b8d55923c8edee5bc175fd805db779ef166 (patch)
tree3cdfc16de3a4daa61e1539624c10f24cc3e49f0f /sdext/source/pdfimport/pdfparse
parent8039c64822c8de24ea452bff7917193f7cc90669 (diff)
loplugin:simplifybool
Change-Id: If5f4042642364424f8d7e1e13b6285503df1d381
Diffstat (limited to 'sdext/source/pdfimport/pdfparse')
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfparse.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
index a5d17b3a5063..6419040d8bd7 100644
--- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
@@ -57,8 +57,8 @@ class StringEmitContext : public EmitContext
}
virtual unsigned int getCurPos() throw() SAL_OVERRIDE { return m_aBuf.getLength(); }
virtual bool copyOrigBytes( unsigned int nOrigOffset, unsigned int nLen ) throw() SAL_OVERRIDE
- { return (nOrigOffset+nLen < static_cast<unsigned int>(m_aBuf.getLength()) ) ?
- write( m_aBuf.getStr() + nOrigOffset, nLen ) : false; }
+ { return (nOrigOffset+nLen < static_cast<unsigned int>(m_aBuf.getLength()) ) &&
+ write( m_aBuf.getStr() + nOrigOffset, nLen ); }
virtual unsigned int readOrigBytes( unsigned int nOrigOffset, unsigned int nLen, void* pBuf ) throw() SAL_OVERRIDE
{
if( nOrigOffset+nLen < static_cast<unsigned int>(m_aBuf.getLength()) )