Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaaadbc2

Browse files
committed
Add virtual destructors now that we have virtual methods.
1 parent5b1b8d4 commitaaadbc2

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
constchar* method,const String& path,
9292
const String& data ="",
9393
FirebaseHttpClient* http =NULL);
94+
virtual~FirebaseCall() {}
95+
9496
virtualconst 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
virtualconst 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
virtualboolavailable();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp