mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
Add 'virtual' to destructors.
This commit is contained in:
parent
8c3b82e596
commit
e749924706
@ -13,7 +13,8 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit inputfilestream(const std::string &filePath);
|
explicit inputfilestream(const std::string &filePath);
|
||||||
~inputfilestream();
|
virtual ~inputfilestream();
|
||||||
|
|
||||||
bool good() const { return is_good; }
|
bool good() const { return is_good; }
|
||||||
void close();
|
void close();
|
||||||
};
|
};
|
||||||
@ -26,7 +27,8 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit outputfilestream(const std::string &filePath);
|
explicit outputfilestream(const std::string &filePath);
|
||||||
~outputfilestream();
|
virtual ~outputfilestream();
|
||||||
|
|
||||||
bool good() const { return is_good; }
|
bool good() const { return is_good; }
|
||||||
void close();
|
void close();
|
||||||
};
|
};
|
||||||
|
@ -14,9 +14,11 @@ public:
|
|||||||
_buff+sizeof(int), // read position
|
_buff+sizeof(int), // read position
|
||||||
_buff+sizeof(int)); // end position
|
_buff+sizeof(int)); // end position
|
||||||
}
|
}
|
||||||
~gzfilebuf() {
|
|
||||||
|
virtual ~gzfilebuf() {
|
||||||
gzclose(_gzf);
|
gzclose(_gzf);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual int_type overflow (int_type c) {
|
virtual int_type overflow (int_type c) {
|
||||||
throw;
|
throw;
|
||||||
|
Loading…
Reference in New Issue
Block a user