summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hiodev.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:16:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:27 +0100
commitc3dcdeb1d2bccc3785e3675843a5228e183b307f (patch)
tree857f6a942ba3b535be2baa1b43c5e5bb834aaff5 /hwpfilter/source/hiodev.cxx
parent2df257e95e655de7b0f888b033a56cd800d3002e (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Idec97093ca48c14b825c7b87ec050cc99aadc526
Diffstat (limited to 'hwpfilter/source/hiodev.cxx')
-rw-r--r--hwpfilter/source/hiodev.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx
index 604c45cc97b5..b6195f0106e0 100644
--- a/hwpfilter/source/hiodev.cxx
+++ b/hwpfilter/source/hiodev.cxx
@@ -122,7 +122,7 @@ HStreamIODev::~HStreamIODev()
void HStreamIODev::init()
{
- _gzfp = NULL;
+ _gzfp = nullptr;
compressed = false;
}
@@ -148,7 +148,7 @@ void HStreamIODev::close()
this->flush();
if (_gzfp)
gz_close(_gzfp);
- _gzfp = NULL;
+ _gzfp = nullptr;
}
@@ -163,12 +163,12 @@ bool HStreamIODev::setCompressed(bool flag)
{
compressed = flag;
if (flag)
- return 0 != (_gzfp = gz_open(*_stream));
+ return nullptr != (_gzfp = gz_open(*_stream));
else if (_gzfp)
{
gz_flush(_gzfp, Z_FINISH);
gz_close(_gzfp);
- _gzfp = 0;
+ _gzfp = nullptr;
}
return true;
}
@@ -278,7 +278,7 @@ HMemIODev::~HMemIODev()
void HMemIODev::init()
{
- ptr = 0;
+ ptr = nullptr;
length = 0;
pos = 0;
}