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

Commit722dd67

Browse files
Added missing virtual destructors
1 parentfc9a636 commit722dd67

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

‎api/Printable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class Print;
3333
classPrintable
3434
{
3535
public:
36+
virtual~Printable() {}
3637
virtualsize_tprintTo(Print& p)const = 0;
3738
};
3839

‎api/Stream.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class Stream : public Print
6262
virtualintpeek() = 0;
6363

6464
Stream() {_timeout=1000;}
65+
virtual~Stream() {}
6566

6667
// parsing methods
6768

‎api/String.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class String
8181
explicitString(unsignedlong,unsignedchar base=10);
8282
explicitString(float,unsignedchar decimalPlaces=2);
8383
explicitString(double,unsignedchar decimalPlaces=2);
84-
~String(void);
84+
virtual~String(void);
8585

8686
// memory management
8787
// return true on success, false on failure (in which case, the string

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp