Remove copy constructor & operator= in LuaHook

Because of member of std::unique_ptr type LuaHook can't be copied
pull/3/head
Hleb Valoshka 2019-12-02 21:49:09 +03:00
parent cb6162f4aa
commit 7b592b4eda
1 changed files with 2 additions and 2 deletions

View File

@ -64,9 +64,9 @@ class LuaHook : public IScriptHook
LuaHook() = delete;
LuaHook(CelestiaCore *appCore) : IScriptHook(appCore) {};
~LuaHook() override = default;
LuaHook(const LuaHook&) = default;
LuaHook(const LuaHook&) = delete;
LuaHook(LuaHook&&) = default;
LuaHook& operator=(const LuaHook&) = default;
LuaHook& operator=(const LuaHook&) = delete;
LuaHook& operator=(LuaHook&&) = default;
bool call(const char *method) const override;