Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit aaadbc2

Browse files
committed
Add virtual destructors now that we have virtual methods.
1 parent 5b1b8d4 commit aaadbc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Firebase.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ class FirebaseCall {
9191
const char* method, const String& path,
9292
const String& data = "",
9393
FirebaseHttpClient* http = NULL);
94+
virtual ~FirebaseCall() {}
95+
9496
virtual const FirebaseError& error() const {
9597
return error_;
9698
}
@@ -134,6 +136,7 @@ class FirebasePush : public FirebaseCall {
134136
FirebasePush() {}
135137
FirebasePush(const String& host, const String& auth,
136138
const String& path, const String& value, FirebaseHttpClient* http = NULL);
139+
virtual ~FirebasePush() {}
137140

138141
virtual const String& name() const {
139142
return name_;
@@ -156,6 +159,7 @@ class FirebaseStream : public FirebaseCall {
156159
FirebaseStream() {}
157160
FirebaseStream(const String& host, const String& auth,
158161
const String& path, FirebaseHttpClient* http = NULL);
162+
virtual ~FirebaseStream() {}
159163

160164
// Return if there is any event available to read.
161165
virtual bool available();

0 commit comments

Comments
 (0)