diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:16:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:27 +0100 |
commit | c3dcdeb1d2bccc3785e3675843a5228e183b307f (patch) | |
tree | 857f6a942ba3b535be2baa1b43c5e5bb834aaff5 /hwpfilter/source/htags.cxx | |
parent | loplugin:nullptr (automatic rewrite) (diff) | |
download | core-c3dcdeb1d2bccc3785e3675843a5228e183b307f.tar.gz core-c3dcdeb1d2bccc3785e3675843a5228e183b307f.zip |
loplugin:nullptr (automatic rewrite)
Change-Id: Idec97093ca48c14b825c7b87ec050cc99aadc526
Diffstat (limited to 'hwpfilter/source/htags.cxx')
-rw-r--r-- | hwpfilter/source/htags.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hwpfilter/source/htags.cxx b/hwpfilter/source/htags.cxx index 428048812eaf..eb49626baa34 100644 --- a/hwpfilter/source/htags.cxx +++ b/hwpfilter/source/htags.cxx @@ -49,7 +49,7 @@ EmPicture::EmPicture(size_t tsize) : size(tsize >= 32 ? tsize - 32 : 0) { if (size == 0) - data = 0; + data = nullptr; else data = new uchar[size]; } @@ -79,7 +79,7 @@ bool EmPicture::Read(HWPFile & hwpf) OlePicture::OlePicture(int tsize) : signature(0) - , pis(NULL) + , pis(nullptr) { size = tsize - 4; if (size <= 0) @@ -139,7 +139,7 @@ bool OlePicture::Read(HWPFile & hwpf) } unlink(tname); #else - if (pis == 0 || hwpf.ReadBlock(pis, size) == 0) + if (pis == nullptr || hwpf.ReadBlock(pis, size) == 0) return false; #endif |