summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/wrapper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:23:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:38 +0100
commitd930b6c2e6e3dfb9e1ed19b84a3137cc0cfbfd8c (patch)
treed846436ca5fd25d707a0428b8c28b67ae6076ed0 /sdext/source/pdfimport/wrapper
parent92c697c0e3e4bde88424322875c993c161696b1e (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I8aec30601862feaeb99e3ce01adf61665688fa9a
Diffstat (limited to 'sdext/source/pdfimport/wrapper')
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index 74baf25b2a5e..5e1584e4cfba 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -208,7 +208,7 @@ namespace
const sal_Char* pRead(pOrig);
sal_Char* pWrite(pBuffer);
const sal_Char* pCur(pOrig);
- while ((pCur = strchr(pCur, '\\')) != 0)
+ while ((pCur = strchr(pCur, '\\')) != nullptr)
{
const sal_Char cNext(pCur[1]);
if (cNext == 'n' || cNext == 'r' || cNext == '\\')
@@ -1070,9 +1070,9 @@ bool xpdf_ImportFromFile( const OUString& rURL,
sal_Int32 nArgs = rFilterOptions.isEmpty() ? 2 : 4;
oslProcess aProcess;
- oslFileHandle pIn = NULL;
- oslFileHandle pOut = NULL;
- oslFileHandle pErr = NULL;
+ oslFileHandle pIn = nullptr;
+ oslFileHandle pOut = nullptr;
+ oslFileHandle pErr = nullptr;
oslSecurity pSecurity = osl_getCurrentSecurity ();
oslProcessError eErr =
osl_executeProcess_WithRedirectedIO(converterURL.pData,
@@ -1080,7 +1080,7 @@ bool xpdf_ImportFromFile( const OUString& rURL,
nArgs,
osl_Process_SEARCHPATH|osl_Process_HIDDEN,
pSecurity,
- 0, 0, 0,
+ nullptr, nullptr, 0,
&aProcess, &pIn, &pOut, &pErr);
osl_freeSecurityHandle(pSecurity);
@@ -1206,9 +1206,9 @@ bool xpdf_ImportFromStream( const uno::Reference< io::XInputStream >& xI
OSL_ASSERT(rSink);
// convert XInputStream to local temp file
- oslFileHandle aFile = NULL;
+ oslFileHandle aFile = nullptr;
OUString aURL;
- if( osl_createTempFile( NULL, &aFile, &aURL.pData ) != osl_File_E_None )
+ if( osl_createTempFile( nullptr, &aFile, &aURL.pData ) != osl_File_E_None )
return false;
// copy content, buffered...