From 8ff3e1cb3169788ed24ce99d8b2b8061009e7c70 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 6 Apr 2023 05:24:02 +1000 Subject: Fixed unused lambda capture in Lua engine. --- src/devices/bus/pofo/ccm.h | 6 +++--- src/frontend/mame/luaengine.ipp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/devices/bus/pofo/ccm.h b/src/devices/bus/pofo/ccm.h index 4cc32777dc7..d82d46300d8 100644 --- a/src/devices/bus/pofo/ccm.h +++ b/src/devices/bus/pofo/ccm.h @@ -115,10 +115,10 @@ public: void nwri_w(offs_t offset, uint8_t data) { if (m_card != nullptr) m_card->nwri_w(offset, data); } protected: - // device-level overrides + // device_t implementation virtual void device_start() override; - // image-level overrides + // device_image_interface implementation virtual std::error_condition call_load() override; virtual const software_list_loader &get_software_list_loader() const override; @@ -126,7 +126,7 @@ protected: virtual const char *image_interface() const noexcept override { return "pofo_card"; } virtual const char *file_extensions() const noexcept override { return "rom,bin"; } - // slot interface overrides + // device_slot_interface implementation virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override; device_portfolio_memory_card_slot_interface *m_card; diff --git a/src/frontend/mame/luaengine.ipp b/src/frontend/mame/luaengine.ipp index 04c2c673454..7cca3066af7 100644 --- a/src/frontend/mame/luaengine.ipp +++ b/src/frontend/mame/luaengine.ipp @@ -592,7 +592,7 @@ auto lua_engine::make_simple_callback_setter(void (T::*setter)(delegate && else if (cb.is()) { (self.*setter)(delegate( - [this, dflt, desc, cbfunc = sol::protected_function(m_lua_state, cb)] () -> R + [dflt, desc, cbfunc = sol::protected_function(m_lua_state, cb)] () -> R { auto status(invoke_direct(cbfunc)); if (status.valid()) -- cgit v1.2.3