sink.h: Make flush() virtual
Otherwise, the writefile class would be unable to flush() its std::ofstream, which might cause downloadsmenu.cpp to attempt to extract an empty or partially written file. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9613 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: c3f5435a045dbbfa74d55ef2c665a324bb72e5b5 Former-commit-id: 1edb27e20333ffd39c0378a390bffde5b74e7a49
This commit is contained in:
parent
f996217509
commit
48ed3d6d14
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
virtual int append(const void *buf, size_t n);
|
||||
virtual ~sink() = default;
|
||||
size_t size() const;
|
||||
void flush();
|
||||
virtual void flush();
|
||||
bool cleanup;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in a new issue