diff options
author | 2022-04-03 05:02:27 +1000 | |
---|---|---|
committer | 2022-04-03 05:02:27 +1000 | |
commit | 3394ce4f2d9a007f6df53daa4f8019e3ec9e5e9a (patch) | |
tree | f75b9823e91be37959339cb4ecfbf3aff7db74d9 /src/frontend/mame/luaengine_mem.cpp | |
parent | 530c5abb5da585ac71f9c643c9d6a2171280fe67 (diff) |
Try to work around the uninitialised member warning in sol::optional.
Diffstat (limited to 'src/frontend/mame/luaengine_mem.cpp')
-rw-r--r-- | src/frontend/mame/luaengine_mem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/luaengine_mem.cpp b/src/frontend/mame/luaengine_mem.cpp index 1bbf7c24431..92491e195ec 100644 --- a/src/frontend/mame/luaengine_mem.cpp +++ b/src/frontend/mame/luaengine_mem.cpp @@ -268,7 +268,7 @@ private: m_name, [this] (offs_t offset, T &data, T mem_mask) { - auto result = invoke(m_callback, offset, data, mem_mask).template get<sol::optional<T> >(); + auto result = invoke(m_callback, offset, data, mem_mask).template get<std::optional<T> >(); if (result) data = *result; }, @@ -281,7 +281,7 @@ private: m_name, [this] (offs_t offset, T &data, T mem_mask) { - auto result = invoke(m_callback, offset, data, mem_mask).template get<sol::optional<T> >(); + auto result = invoke(m_callback, offset, data, mem_mask).template get<std::optional<T> >(); if (result) data = *result; }, |