Skip to content

Navigation Menu

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

Appearance settings

Commit 9dab7bb

Browse filesBrowse files
Added missing virtual destructors
1 parent 3307356 commit 9dab7bb
Copy full SHA for 9dab7bb

File tree

2 files changed

+3
-0
lines changed
Filter options

2 files changed

+3
-0
lines changed

‎api/Print.h

Copy file name to clipboardExpand all lines: api/Print.h
+2Lines 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

Copy file name to clipboardExpand all lines: api/Printable.h
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.