mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Add 'virtual' to destructors.
This commit is contained in:
parent
8c3b82e596
commit
e749924706
@ -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();
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user