Movatterモバイル変換


[0]ホーム

URL:


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

Commitf617c42

Browse files
Added missing virtual destructors
1 parent9958855 commitf617c42

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
voidsetWriteError(int err =1) { write_error = err; }
4444
public:
4545
Print() : write_error(0) {}
46+
virtual~Print() {}
47+
4648

4749
intgetWriteError() {return write_error; }
4850
voidclearWriteError() {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
classPrintable
3535
{
3636
public:
37+
virtual~Printable() {}
3738
virtualsize_tprintTo(Print& p)const = 0;
3839
};
3940

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp