Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7d30be7

Browse files
Added missing virtual destructors
1 parent 5046281 commit 7d30be7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎api/Print.h‎

Lines changed: 2 additions & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /