clang: Add CallableCustomMethodPointerBase virtual destructor

Fixes #1272
+ clang++ (debian v16/v17) warning:
	destructor called on
	'godot::CallableCustomMethodPointerBase' that is abstract but has non-virtual destructor
	[-Wdelete-abstract-non-virtual-dtor]
pull/1275/head
Martin Capitanio 2023-10-19 08:45:03 +02:00
parent 64eac01d04
commit a926b96103
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class CallableCustomMethodPointerBase {
public: public:
virtual Object *get_object() const = 0; virtual Object *get_object() const = 0;
virtual void call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, GDExtensionCallError &r_call_error) const = 0; virtual void call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, GDExtensionCallError &r_call_error) const = 0;
virtual ~CallableCustomMethodPointerBase() {}
}; };
namespace internal { namespace internal {