Jelajahi Sumber

Delete love::Type copy constructor

--HG--
branch : dynamiccore2
Bart van Strien 9 tahun lalu
induk
melakukan
3b88c13535
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  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.
  * @param type The type of the object.
  **/
  **/
 template <typename T>
 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);
 	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
 	// TODO: Type-checking templated constructor
 	Type(Type *parent);
 	Type(Type *parent);
+	Type(const Type&) = delete;
 
 
 	uint32_t getId();
 	uint32_t getId();
 	bool isa(const uint32_t &other);
 	bool isa(const uint32_t &other);