File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ DEFINE_FIREBASE_VERSION_STRING(FirebaseAppCheck);
52
52
Mutex g_app_check_lock; // NOLINT
53
53
static std::map<::firebase::App*, AppCheck*>* g_app_check_map = nullptr ;
54
54
55
+ // Define the destructors for the virtual listener/provider/factory classes.
56
+ AppCheckListener::~AppCheckListener () {}
57
+ AppCheckProvider::~AppCheckProvider () {}
58
+ AppCheckProviderFactory::~AppCheckProviderFactory () {}
59
+
55
60
AppCheck* AppCheck::GetInstance (::firebase::App* app) {
56
61
MutexLock lock (g_app_check_lock);
57
62
if (!g_app_check_map) {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ struct AppCheckToken {
58
58
59
59
// / @brief Base class used to receive messages when AppCheck token changes.
60
60
class AppCheckListener {
61
- virtual ~AppCheckListener ();
61
+ virtual ~AppCheckListener () = 0 ;
62
62
// / This method gets invoked on the UI thread on changes to the token state.
63
63
// / Does not trigger on token expiry.
64
64
virtual void OnAppCheckTokenChanged (const AppCheckToken& token) = 0;
@@ -71,7 +71,7 @@ class AppCheckListener {
71
71
// / call and returning that new token if it can.
72
72
class AppCheckProvider {
73
73
public:
74
- virtual ~AppCheckProvider ();
74
+ virtual ~AppCheckProvider () = 0 ;
75
75
// / Fetches an AppCheckToken and then calls the provided callback method with
76
76
// / the token or with an error code and error message.
77
77
virtual void GetToken (
@@ -82,7 +82,7 @@ class AppCheckProvider {
82
82
// / Interface for a factory that generates {@link AppCheckProvider}s.
83
83
class AppCheckProviderFactory {
84
84
public:
85
- virtual ~AppCheckProviderFactory ();
85
+ virtual ~AppCheckProviderFactory () = 0 ;
86
86
// / Gets the {@link AppCheckProvider} associated with the given
87
87
// / {@link App} instance, or creates one if none
88
88
// / already exists.
You can’t perform that action at this time.
0 commit comments