From 1f96a0d16cda4199e5b95beffc2bf8b336c70e3b Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Mon, 27 Sep 2021 20:24:14 +0300 Subject: [PATCH] Use default destructor for Object --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index 02e78db..054684e 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -965,7 +965,7 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append("\ttemplate") result.append("\tstatic T *cast_to(Object *p_object);") - result.append("\tvirtual ~Object() {};") + result.append("\tvirtual ~Object() = default;") elif use_template_get_node and class_name == "Node": result.append("\ttemplate") result.append(