diff options
author | Mattes D <github@xoft.cz> | 2016-06-27 20:49:59 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-27 20:51:53 +0200 |
commit | bf88312a1664311968736b4ba7ce1458c8b0954e (patch) | |
tree | 59bae2de637b5f3c629db8e55fb44a3106266709 /src/Bindings/LuaWindow.cpp | |
parent | Removed dead code related to callbacks. (diff) | |
download | cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.gz cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.bz2 cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.lz cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.xz cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.zst cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.zip |
Diffstat (limited to 'src/Bindings/LuaWindow.cpp')
-rw-r--r-- | src/Bindings/LuaWindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/LuaWindow.cpp b/src/Bindings/LuaWindow.cpp index bf3f7cfde..6fffa7aac 100644 --- a/src/Bindings/LuaWindow.cpp +++ b/src/Bindings/LuaWindow.cpp @@ -66,26 +66,26 @@ cLuaWindow::~cLuaWindow() -void cLuaWindow::SetOnClosing(cLuaState::cCallbackPtr a_OnClosing) +void cLuaWindow::SetOnClosing(cLuaState::cCallbackPtr && a_OnClosing) { // Only one Lua state can be a cLuaWindow object callback: ASSERT(a_OnClosing->IsSameLuaState(*m_LuaState)); // Store the new reference, releasing the old one if appropriate: - m_OnClosing = a_OnClosing; + m_OnClosing = std::move(a_OnClosing); } -void cLuaWindow::SetOnSlotChanged(cLuaState::cCallbackPtr a_OnSlotChanged) +void cLuaWindow::SetOnSlotChanged(cLuaState::cCallbackPtr && a_OnSlotChanged) { // Only one Lua state can be a cLuaWindow object callback: ASSERT(a_OnSlotChanged->IsSameLuaState(*m_LuaState)); // Store the new reference, releasing the old one if appropriate: - m_OnSlotChanged = a_OnSlotChanged; + m_OnSlotChanged = std::move(a_OnSlotChanged); } |