From 6480d979158e39855c3c657226f543e47c5ac611 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 20 Nov 2021 15:30:03 +0100 Subject: [PATCH] NativeArray does not need to return const pointers in Angelscript. --- src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.cpp | 1 - src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.hpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.cpp diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.cpp deleted file mode 100644 index c8ddedc..0000000 --- a/src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "NativeArray.hpp" \ No newline at end of file diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.hpp b/src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.hpp index a770efd..1a28d78 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.hpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/NativeArray.hpp @@ -36,9 +36,9 @@ public: Ensure(engine->RegisterObjectMethod("narray", "uint64 get_Length() const property", asMETHOD(NativeArray, Length), asCALL_THISCALL) >= 0); - Ensure(engine->RegisterObjectMethod("narray", "const T@ At(uint64 index) const", asMETHOD(NativeArray, At), + Ensure(engine->RegisterObjectMethod("narray", "T@ At(uint64 index) const", asMETHOD(NativeArray, At), asCALL_THISCALL) >= 0); - Ensure(engine->RegisterObjectMethod("narray", "const T@ get_opIndex(uint64 index) const property", + Ensure(engine->RegisterObjectMethod("narray", "T@ get_opIndex(uint64 index) const property", asMETHOD(NativeArray, At), asCALL_THISCALL) >= 0); } };