From 3b88c135353344dc49384c6c970a0b0710ef5878 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Sun, 13 Nov 2016 16:46:26 +0100 Subject: [PATCH] Delete love::Type copy constructor --HG-- branch : dynamiccore2 --- src/common/runtime.h | 2 +- src/common/types.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/runtime.h b/src/common/runtime.h index 08c6080bf..308672b38 100644 --- a/src/common/runtime.h +++ b/src/common/runtime.h @@ -514,7 +514,7 @@ T *luax_optmodule(lua_State *L, love::Type &type) * @param type The type of the object. **/ template -T *luax_totype(lua_State *L, int idx, love::Type /*type*/) +T *luax_totype(lua_State *L, int idx, love::Type& /*type*/) { T *o = (T *)(((Proxy *)lua_touserdata(L, idx))->object); diff --git a/src/common/types.h b/src/common/types.h index 6dc368646..33429cad2 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -39,6 +39,7 @@ public: // TODO: Type-checking templated constructor Type(Type *parent); + Type(const Type&) = delete; uint32_t getId(); bool isa(const uint32_t &other);