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
parent
64eac01d04
commit
a926b96103
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue