diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-18 12:21:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-18 14:24:11 +0100 |
commit | 8a6eb111609fbb1e0270ef5ba475b027635c9749 (patch) | |
tree | 50933f1d17b817615a9c8685eaf8311839c60584 /sdext | |
parent | 3323937085939952aaf0a98147d231dfdfb85321 (diff) |
cppcheck: nullPointerRedundantCheck
Change-Id: I9d6c38ad3104369c7661bc8a8561807598aecfcb
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index ab5f2e813ca7..01e9893f989d 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -882,8 +882,7 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const if( pOutBytes != reinterpret_cast<sal_uInt8*>(pStream) ) rtl_freeMemory( pOutBytes ); rtl_freeMemory( pStream ); - if( pEData ) - pEData->setDecryptObject( 0, 0 ); + pEData->setDecryptObject( 0, 0 ); return bRet; } if( pOutBytes != reinterpret_cast<sal_uInt8*>(pStream) ) |