diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:28:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:32:00 +0100 |
commit | d3b6cb7ec2da4afb5687c9d28b2be2f96e6aa7b1 (patch) | |
tree | e9d209d6d5f06cacd8e0df78c7f6b8ad45d74be5 /vcl/source/filter/jpeg/JpegWriter.cxx | |
parent | 45979047abbd9da7a29401f298e8ef9ab58ad337 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
Diffstat (limited to 'vcl/source/filter/jpeg/JpegWriter.cxx')
-rw-r--r-- | vcl/source/filter/jpeg/JpegWriter.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/filter/jpeg/JpegWriter.cxx b/vcl/source/filter/jpeg/JpegWriter.cxx index 1c6594b61e54..cb1a67f90712 100644 --- a/vcl/source/filter/jpeg/JpegWriter.cxx +++ b/vcl/source/filter/jpeg/JpegWriter.cxx @@ -90,7 +90,7 @@ void jpeg_svstream_dest (j_compress_ptr cinfo, void* output) * manager serially with the same JPEG object, because their private object * sizes may be different. Caveat programmer. */ - if (cinfo->dest == NULL) + if (cinfo->dest == nullptr) { /* first time for this JPEG object? */ cinfo->dest = static_cast<jpeg_destination_mgr*>( (*cinfo->mem->alloc_small) (reinterpret_cast<j_common_ptr>(cinfo), JPOOL_PERMANENT, sizeof(DestinationManagerStruct))); @@ -105,8 +105,8 @@ void jpeg_svstream_dest (j_compress_ptr cinfo, void* output) JPEGWriter::JPEGWriter( SvStream& rStream, const css::uno::Sequence< css::beans::PropertyValue >* pFilterData, bool* pExportWasGrey ) : mrStream ( rStream ), - mpReadAccess ( NULL ), - mpBuffer ( NULL ), + mpReadAccess ( nullptr ), + mpBuffer ( nullptr ), mbNative ( false ), mpExpWasGrey ( pExportWasGrey ) { @@ -132,7 +132,7 @@ JPEGWriter::JPEGWriter( SvStream& rStream, const css::uno::Sequence< css::beans: void* JPEGWriter::GetScanline( long nY ) { - void* pScanline = NULL; + void* pScanline = nullptr; if( mpReadAccess ) { @@ -233,10 +233,10 @@ bool JPEGWriter::Write( const Graphic& rGraphic ) bRet = WriteJPEG( this, &mrStream, mpReadAccess->Width(), mpReadAccess->Height(), mbGreys, mnQuality, maChromaSubsampling, mxStatusIndicator ); delete[] mpBuffer; - mpBuffer = NULL; + mpBuffer = nullptr; Bitmap::ReleaseAccess( mpReadAccess ); - mpReadAccess = NULL; + mpReadAccess = nullptr; } if ( mxStatusIndicator.is() ) mxStatusIndicator->end(); |