File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ class Print
42
42
void setWriteError (int err = 1 ) { write_error = err; }
43
43
public:
44
44
Print () : write_error(0 ) {}
45
+ virtual ~Print () {}
46
+
45
47
46
48
int getWriteError () { return write_error; }
47
49
void clearWriteError () { setWriteError (0 ); }
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 @@ -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