From 0276c2e74a3212a806119bccb659ceb9dcc25a41 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Wed, 29 Sep 2021 14:27:57 +0200 Subject: Fix const pointers types in docs and extension API. The GDVIRTUAL_NATIVE_PTR did not declare the correct GDNativeConstPtr template, resulting in "void*" being used as it's type info in both the documentation and the extension API dump. --- core/variant/native_ptr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/variant/native_ptr.h b/core/variant/native_ptr.h index b7e8d92f62..913d4d8f7c 100644 --- a/core/variant/native_ptr.h +++ b/core/variant/native_ptr.h @@ -55,7 +55,7 @@ struct GDNativePtr { #define GDVIRTUAL_NATIVE_PTR(m_type) \ template <> \ - struct GDNativeConstPtr { \ + struct GDNativeConstPtr { \ const m_type *data = nullptr; \ GDNativeConstPtr(const m_type *p_assign) { data = p_assign; } \ static const char *get_name() { return "const " #m_type; } \ -- cgit v1.2.3