Skip to content

Commit 87bfdd4

Browse files
committed
Fixing compiler error: 'virtual Adafruit_SPITFT::~Adafruit_SPITFT()' is implicitly deleted because the default definition would be ill-formed
1 parent e9b8637 commit 87bfdd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Adafruit_SPITFT.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ class Adafruit_SPITFT : public Adafruit_GFX {
154154
int8_t wr, int8_t dc, int8_t cs = -1, int8_t rst = -1,
155155
int8_t rd = -1);
156156

157+
// DESTRUCTOR ----------------------------------------------------------
158+
159+
~Adafruit_SPITFT() {};
160+
157161
// CLASS MEMBER FUNCTIONS ----------------------------------------------
158162

159163
// These first two functions MUST be declared by subclasses:

0 commit comments

Comments
 (0)