Browse Source

Delete love::Type copy constructor

--HG--
branch : dynamiccore2
Bart van Strien 8 years ago
parent
commit
3b88c13535
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/common/runtime.h
  2. 1 0
      src/common/types.h

+ 1 - 1
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 <typename T>
-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);
 

+ 1 - 0
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);