File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,6 @@ public:
274
274
if (p_instance) { \
275
275
m_class *cls = reinterpret_cast <m_class *>(p_instance); \
276
276
cls->plist_owned .clear (); \
277
- /* TODO `GDExtensionClassFreePropertyList` is ill-defined, we need a non-const pointer to free this. */ \
278
277
::godot::internal::free_c_property_list (const_cast <GDExtensionPropertyInfo *>(p_list)); \
279
278
} \
280
279
} \
Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ class MethodBindTC : public MethodBind {
412
412
method = p_method;
413
413
generate_argument_types (sizeof ...(P));
414
414
set_argument_count (sizeof ...(P));
415
+ set_const (true );
415
416
}
416
417
};
417
418
@@ -578,6 +579,7 @@ class MethodBindTRC : public MethodBind {
578
579
generate_argument_types (sizeof ...(P));
579
580
set_argument_count (sizeof ...(P));
580
581
set_return (true );
582
+ set_const (true );
581
583
}
582
584
};
583
585
You can’t perform that action at this time.
0 commit comments