Skip to content

Commit 9dab7bb

Browse files
Added missing virtual destructors
1 parent 3307356 commit 9dab7bb

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy