File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Print;
3333class Printable
3434{
3535 public:
36+ virtual ~Printable () {}
3637 virtual size_t printTo (Print& p) const = 0;
3738};
3839
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class Stream : public Print
6262 virtual int peek () = 0;
6363
6464 Stream () {_timeout=1000 ;}
65+ virtual ~Stream () {}
6566
6667// parsing methods
6768
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class String
8181 explicit String (unsigned long , unsigned char base=10 );
8282 explicit String (float , unsigned char decimalPlaces=2 );
8383 explicit String (double , unsigned char 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
You can’t perform that action at this time.
0 commit comments