mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Delete love::Type copy constructor
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user