diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:15:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:25 +0100 |
commit | 3cdda9af2c12a9ae2a1f0bdf8ca898f1f5c69bfb (patch) | |
tree | ba25525cbc9661509d8f01e93164e0febb8a0894 /filter/source/graphicfilter/ipsd/ipsd.cxx | |
parent | 7702e3128768f1b4b8a1ee9e87e397887e151af4 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I61e494952df8cc40fff3ccad0936adf06035dbeb
Diffstat (limited to 'filter/source/graphicfilter/ipsd/ipsd.cxx')
-rw-r--r-- | filter/source/graphicfilter/ipsd/ipsd.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/filter/source/graphicfilter/ipsd/ipsd.cxx b/filter/source/graphicfilter/ipsd/ipsd.cxx index 1816dea388c0..a8ec8d5e337b 100644 --- a/filter/source/graphicfilter/ipsd/ipsd.cxx +++ b/filter/source/graphicfilter/ipsd/ipsd.cxx @@ -86,17 +86,17 @@ public: PSDReader::PSDReader(SvStream &rStream) : m_rPSD(rStream) - , mpFileHeader(NULL) + , mpFileHeader(nullptr) , mnXResFixed(0) , mnYResFixed(0) , mbStatus(true) , mbTransparent(false) - , mpReadAcc(NULL) - , mpWriteAcc(NULL) - , mpMaskWriteAcc(NULL) + , mpReadAcc(nullptr) + , mpWriteAcc(nullptr) + , mpMaskWriteAcc(nullptr) , mnDestBitDepth(0) , mbCompression(false) - , mpPalette(NULL) + , mpPalette(nullptr) { } @@ -120,14 +120,14 @@ bool PSDReader::ReadPSD(Graphic & rGraphic ) Size aBitmapSize( mpFileHeader->nColumns, mpFileHeader->nRows ); maBmp = Bitmap( aBitmapSize, mnDestBitDepth ); - if ( ( mpWriteAcc = maBmp.AcquireWriteAccess() ) == NULL ) + if ( ( mpWriteAcc = maBmp.AcquireWriteAccess() ) == nullptr ) mbStatus = false; - if ( ( mpReadAcc = maBmp.AcquireReadAccess() ) == NULL ) + if ( ( mpReadAcc = maBmp.AcquireReadAccess() ) == nullptr ) mbStatus = false; if ( mbTransparent && mbStatus ) { maMaskBmp = Bitmap( aBitmapSize, 1 ); - if ( ( mpMaskWriteAcc = maMaskBmp.AcquireWriteAccess() ) == NULL ) + if ( ( mpMaskWriteAcc = maMaskBmp.AcquireWriteAccess() ) == nullptr ) mbStatus = false; } if ( mpPalette && mbStatus ) |