Add 'virtual' to destructors.

This commit is contained in:
Tetsuo Kiso 2012-02-20 10:23:59 +09:00
parent 8c3b82e596
commit e749924706
2 changed files with 7 additions and 3 deletions

View File

@ -13,7 +13,8 @@ protected:
public:
explicit inputfilestream(const std::string &filePath);
~inputfilestream();
virtual ~inputfilestream();
bool good() const { return is_good; }
void close();
};
@ -26,7 +27,8 @@ protected:
public:
explicit outputfilestream(const std::string &filePath);
~outputfilestream();
virtual ~outputfilestream();
bool good() const { return is_good; }
void close();
};

View File

@ -14,9 +14,11 @@ public:
_buff+sizeof(int), // read position
_buff+sizeof(int)); // end position
}
~gzfilebuf() {
virtual ~gzfilebuf() {
gzclose(_gzf);
}
protected:
virtual int_type overflow (int_type c) {
throw;