diff --git a/src/core/lib/json/json_object_loader.h b/src/core/lib/json/json_object_loader.h index 89af25dad48..2fbec033136 100644 --- a/src/core/lib/json/json_object_loader.h +++ b/src/core/lib/json/json_object_loader.h @@ -235,6 +235,9 @@ class LoadBool : public LoaderInterface { public: void LoadInto(const Json& json, const JsonArgs& /*args*/, void* dst, ErrorList* errors) const override; + + protected: + ~LoadBool() = default; }; // Loads an unprocessed JSON object value. @@ -242,6 +245,9 @@ class LoadUnprocessedJsonObject : public LoaderInterface { public: void LoadInto(const Json& json, const JsonArgs& /*args*/, void* dst, ErrorList* errors) const override; + + protected: + ~LoadUnprocessedJsonObject() = default; }; // Load a vector of some type.