diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 16:53:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-16 14:18:10 +0000 |
commit | 6ac0e9f4d121584c75961bc5b1be739f9fa91f3b (patch) | |
tree | d0baf036a0b7855d7c0392f293dc0de9bc43cd36 /sdext/source/pdfimport/pdfparse | |
parent | 83d6099b7d89f91695d34a18b314f16092972efb (diff) |
clang-cl loplugin: sdext
Change-Id: I9f5e73b6f561ccb635217227787c6e8a574bdc97
Reviewed-on: https://gerrit.libreoffice.org/29854
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sdext/source/pdfimport/pdfparse')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfparse.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx index 6b9b0f869720..7b2b44c79407 100644 --- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx @@ -570,7 +570,7 @@ PDFEntry* PDFReader::read( const char* pBuffer, unsigned int nLen ) #endif } - PDFEntry* pRet = NULL; + PDFEntry* pRet = nullptr; unsigned int nEntries = aGrammar.m_aObjectStack.size(); if( nEntries == 1 ) { @@ -597,14 +597,14 @@ PDFEntry* PDFReader::read( const char* pFileName ) So for the time being bite the bullet and read the whole file. FIXME: give Spirit 2.x another try when we upgrade boost again. */ - PDFEntry* pRet = NULL; + PDFEntry* pRet = nullptr; FILE* fp = fopen( pFileName, "rb" ); if( fp ) { fseek( fp, 0, SEEK_END ); unsigned int nLen = (unsigned int)ftell( fp ); fseek( fp, 0, SEEK_SET ); - char* pBuf = (char*)rtl_allocateMemory( nLen ); + char* pBuf = static_cast<char*>(rtl_allocateMemory( nLen )); if( pBuf ) { fread( pBuf, 1, nLen, fp ); |