File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Print;
33
33
class Printable
34
34
{
35
35
public:
36
+ virtual ~Printable () {}
36
37
virtual size_t printTo (Print& p) const = 0;
37
38
};
38
39
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class Stream : public Print
62
62
virtual int peek () = 0;
63
63
64
64
Stream () {_timeout=1000 ;}
65
+ virtual ~Stream () {}
65
66
66
67
// parsing methods
67
68
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class String
81
81
explicit String (unsigned long , unsigned char base=10 );
82
82
explicit String (float , unsigned char decimalPlaces=2 );
83
83
explicit String (double , unsigned char decimalPlaces=2 );
84
- ~String (void );
84
+ virtual ~String (void );
85
85
86
86
// memory management
87
87
// return true on success, false on failure (in which case, the string
You can’t perform that action at this time.
0 commit comments