summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-29 14:27:57 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-29 16:04:20 +0200
commit0276c2e74a3212a806119bccb659ceb9dcc25a41 (patch)
tree62b5beb8bf2cc35b45e88057e8b81b000cbd098e /core/variant
parentd18cbdf5e4a1132bfc5f581195f6bf7c3b9bed79 (diff)
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.
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/native_ptr.h2
1 files changed, 1 insertions, 1 deletions
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<m_type> { \
+ struct GDNativeConstPtr<const m_type> { \
const m_type *data = nullptr; \
GDNativeConstPtr(const m_type *p_assign) { data = p_assign; } \
static const char *get_name() { return "const " #m_type; } \