diff options
author | Vas Crabb <vas@vastheman.com> | 2019-12-13 08:19:59 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2019-12-13 08:19:59 +1100 |
commit | f7733b7be3a3230a733b7c7bf8064bcf0f21620a (patch) | |
tree | 7d06f6cd60cee47833ccc4db1c4b71b05402073b | |
parent | 96cabda5fb5a1c89857af5bce4a4cbc185d44184 (diff) |
restore the two std::forward that are actually needed - only two of them are superfluous (nw)
-rw-r--r-- | src/emu/device.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/device.h b/src/emu/device.h index 19735d58dbd..d6e35a5c1b7 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -622,16 +622,16 @@ public: m_save->save_item(this, name(), tag(), index, value, element, valname); } template<typename ItemType> - void ATTR_COLD save_pointer(ItemType &value, const char *valname, u32 count, int index = 0) + void ATTR_COLD save_pointer(ItemType &&value, const char *valname, u32 count, int index = 0) { assert(m_save); - m_save->save_pointer(this, name(), tag(), index, value, valname, count); + m_save->save_pointer(this, name(), tag(), index, std::forward<ItemType>(value), valname, count); } template<typename ItemType, typename StructType, typename ElementType> - void ATTR_COLD save_pointer(ItemType &value, ElementType StructType::*element, const char *valname, u32 count, int index = 0) + void ATTR_COLD save_pointer(ItemType &&value, ElementType StructType::*element, const char *valname, u32 count, int index = 0) { assert(m_save); - m_save->save_pointer(this, name(), tag(), index, value, element, valname, count); + m_save->save_pointer(this, name(), tag(), index, std::forward<ItemType>(value), element, valname, count); } // debugging |