Skip to content

Commit 9afbdb9

Browse files
committed
Backport miscellaneous changes that can't be cherry-picked
1 parent 98c143a commit 9afbdb9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/godot_cpp/classes/wrapped.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ public:
274274
if (p_instance) { \
275275
m_class *cls = reinterpret_cast<m_class *>(p_instance); \
276276
cls->plist_owned.clear(); \
277-
/* TODO `GDExtensionClassFreePropertyList` is ill-defined, we need a non-const pointer to free this. */ \
278277
::godot::internal::free_c_property_list(const_cast<GDExtensionPropertyInfo *>(p_list)); \
279278
} \
280279
} \

include/godot_cpp/core/method_bind.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ class MethodBindTC : public MethodBind {
412412
method = p_method;
413413
generate_argument_types(sizeof...(P));
414414
set_argument_count(sizeof...(P));
415+
set_const(true);
415416
}
416417
};
417418

@@ -578,6 +579,7 @@ class MethodBindTRC : public MethodBind {
578579
generate_argument_types(sizeof...(P));
579580
set_argument_count(sizeof...(P));
580581
set_return(true);
582+
set_const(true);
581583
}
582584
};
583585

0 commit comments

Comments
 (0)