Skip to content

Commit

Permalink
file.cpp: add virtual destructor to File_impl to stop compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information
tycho committed Apr 20, 2015
1 parent 2ce3c6c commit 7c4acea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions file.cpp
Expand Up @@ -23,6 +23,8 @@
struct File_impl {
bool _ioErr;
File_impl() : _ioErr(false) {}
virtual ~File_impl() {}

virtual bool open(const char *path, const char *mode) = 0;
virtual void close() = 0;
virtual void seek(int32_t off) = 0;
Expand Down

0 comments on commit 7c4acea

Please sign in to comment.