Skip to content

Commit f617c42

Browse files
Added missing virtual destructors
1 parent 9958855 commit f617c42

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api/Print.h

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class Print
4343
void setWriteError(int err = 1) { write_error = err; }
4444
public:
4545
Print() : write_error(0) {}
46+
virtual ~Print() {}
47+
4648

4749
int getWriteError() { return write_error; }
4850
void clearWriteError() { setWriteError(0); }

api/Printable.h

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class Print;
3434
class Printable
3535
{
3636
public:
37+
virtual ~Printable() {}
3738
virtual size_t printTo(Print& p) const = 0;
3839
};
3940

0 commit comments

Comments
 (0)