summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hiodev.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-09-16 09:13:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-09-16 09:13:53 +0200
commitb755094c831d449aba37eaf53e4f6e28b9ee5ad9 (patch)
treef4d24d9338f3395e52887b6f03311a223717fbdd /hwpfilter/source/hiodev.cxx
parent96e9ffa64706f523d67659a20a0ccce6fbd0cb91 (diff)
No need for an abstaract HIODev::close
...that was only called from dtors anyway, where its virtual-ness doesn't actually help (and would trigger loplugin:fragiledestructor if that were enabled) Change-Id: I477a22f2cadd1124b7106c5338e525629968a284
Diffstat (limited to 'hwpfilter/source/hiodev.cxx')
-rw-r--r--hwpfilter/source/hiodev.cxx22
1 files changed, 5 insertions, 17 deletions
diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx
index a5e035741dbb..98001e99a6a8 100644
--- a/hwpfilter/source/hiodev.cxx
+++ b/hwpfilter/source/hiodev.cxx
@@ -116,7 +116,11 @@ HStreamIODev::HStreamIODev(HStream * stream):_stream(stream)
HStreamIODev::~HStreamIODev()
{
- close();
+/* 플러시한 후 닫는다. */
+ this->flush();
+ if (_gzfp)
+ gz_close(_gzfp);
+ _gzfp = nullptr;
}
@@ -142,16 +146,6 @@ void HStreamIODev::flush()
}
-void HStreamIODev::close()
-{
-/* 플러시한 후 닫는다. */
- this->flush();
- if (_gzfp)
- gz_close(_gzfp);
- _gzfp = nullptr;
-}
-
-
int HStreamIODev::state() const
{
return 0;
@@ -272,7 +266,6 @@ HMemIODev::HMemIODev(char *s, int len)
HMemIODev::~HMemIODev()
{
- close();
}
@@ -295,11 +288,6 @@ void HMemIODev::flush()
}
-void HMemIODev::close()
-{
-}
-
-
int HMemIODev::state() const
{
if (pos <= length)