diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-06-17 17:46:18 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-06-24 09:08:33 -0400 |
commit | b3afc83bde187412269b825d052116727aa3c1bd (patch) | |
tree | 98809c6cc5d861056842a4acfac24b11a14ecc8f /src/devices/bus | |
parent | 297b99c0faa2e70ed3fb5cc4c9ed60e40cd9af5a (diff) |
Allow passing std::unique_ptr<TYPE> directly to save_pointer and remove now-superfluous .get() in many drivers/devices (nw)
Diffstat (limited to 'src/devices/bus')
-rw-r--r-- | src/devices/bus/einstein/pipe/silicon_disc.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/einstein/pipe/speculator.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/einstein/pipe/tk02.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/intellec4/insdatastor.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/intellec4/prommemory.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/interpro/sr/gt.cpp | 4 | ||||
-rw-r--r-- | src/devices/bus/s100/seals8k.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/snes/sdd1.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/svi3x8/slot/sv803.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/svi3x8/slot/sv806.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/svi3x8/slot/sv807.cpp | 4 | ||||
-rw-r--r-- | src/devices/bus/ti8x/graphlinkhle.cpp | 2 |
12 files changed, 14 insertions, 14 deletions
diff --git a/src/devices/bus/einstein/pipe/silicon_disc.cpp b/src/devices/bus/einstein/pipe/silicon_disc.cpp index ec8924a9002..b9017cd6e56 100644 --- a/src/devices/bus/einstein/pipe/silicon_disc.cpp +++ b/src/devices/bus/einstein/pipe/silicon_disc.cpp @@ -69,7 +69,7 @@ void einstein_silicon_disc_device::device_start() memset(m_ram.get(), 0xff, 0x40000); // register for save states - save_pointer(NAME(m_ram.get()), 0x40000); + save_pointer(NAME(m_ram), 0x40000); save_item(NAME(m_sector)); } diff --git a/src/devices/bus/einstein/pipe/speculator.cpp b/src/devices/bus/einstein/pipe/speculator.cpp index 8334f2d3f65..50f3458b947 100644 --- a/src/devices/bus/einstein/pipe/speculator.cpp +++ b/src/devices/bus/einstein/pipe/speculator.cpp @@ -84,7 +84,7 @@ void einstein_speculator_device::device_start() memset(m_ram.get(), 0xff, 0x800); // register for save states - save_pointer(NAME(m_ram.get()), 0x800); + save_pointer(NAME(m_ram), 0x800); save_item(NAME(m_nmisel)); } diff --git a/src/devices/bus/einstein/pipe/tk02.cpp b/src/devices/bus/einstein/pipe/tk02.cpp index a40def814f4..048cd0680ee 100644 --- a/src/devices/bus/einstein/pipe/tk02.cpp +++ b/src/devices/bus/einstein/pipe/tk02.cpp @@ -146,7 +146,7 @@ void tk02_device::device_start() memset(m_ram.get(), 0xff, 0x800); // register for save states - save_pointer(NAME(m_ram.get()), 0x800); + save_pointer(NAME(m_ram), 0x800); save_item(NAME(m_de)); } diff --git a/src/devices/bus/intellec4/insdatastor.cpp b/src/devices/bus/intellec4/insdatastor.cpp index f036bf6e7b5..f271ef4b91f 100644 --- a/src/devices/bus/intellec4/insdatastor.cpp +++ b/src/devices/bus/intellec4/insdatastor.cpp @@ -80,7 +80,7 @@ void imm4_22_device::device_start() save_item(NAME(m_rom_mirror)); save_item(NAME(m_memory)); save_item(NAME(m_status)); - save_pointer(NAME(m_prom.get()), 1024U); + save_pointer(NAME(m_prom), 1024U); } void imm4_22_device::device_reset() diff --git a/src/devices/bus/intellec4/prommemory.cpp b/src/devices/bus/intellec4/prommemory.cpp index d3d1629ca1f..0eab857a72f 100644 --- a/src/devices/bus/intellec4/prommemory.cpp +++ b/src/devices/bus/intellec4/prommemory.cpp @@ -45,7 +45,7 @@ void imm6_26_device::device_start() { allocate(); - save_pointer(NAME(m_data.get()), 4096U); + save_pointer(NAME(m_data), 4096U); } diff --git a/src/devices/bus/interpro/sr/gt.cpp b/src/devices/bus/interpro/sr/gt.cpp index e840f973ed9..409ddcd18f8 100644 --- a/src/devices/bus/interpro/sr/gt.cpp +++ b/src/devices/bus/interpro/sr/gt.cpp @@ -409,8 +409,8 @@ void gt_device_base::device_start() gt.buffer.reset(new u8[GT_BUFFER_SIZE * 2]); gt.mask.reset(new u8[GT_BUFFER_SIZE * 2]); - save_pointer(gt.buffer.get(), util::string_format("buffer%i", i).c_str(), GT_BUFFER_SIZE * 2); - save_pointer(gt.mask.get(), util::string_format("mask%i", i).c_str(), GT_BUFFER_SIZE * 2); + save_pointer(NAME(gt.buffer), GT_BUFFER_SIZE * 2, i); + save_pointer(NAME(gt.mask), GT_BUFFER_SIZE * 2, i); } // allocate timers diff --git a/src/devices/bus/s100/seals8k.cpp b/src/devices/bus/s100/seals8k.cpp index 354832766f3..79e90a29d4f 100644 --- a/src/devices/bus/s100/seals8k.cpp +++ b/src/devices/bus/s100/seals8k.cpp @@ -154,7 +154,7 @@ ioport_constructor s100_8k_sc_device::device_input_ports() const void s100_8k_sc_device::device_start() { m_ram = make_unique_clear<u8[]>(0x2000); - save_pointer(NAME(m_ram.get()), 0x2000); + save_pointer(NAME(m_ram), 0x2000); } diff --git a/src/devices/bus/snes/sdd1.cpp b/src/devices/bus/snes/sdd1.cpp index e6f0ee179d2..6d13fcd97a8 100644 --- a/src/devices/bus/snes/sdd1.cpp +++ b/src/devices/bus/snes/sdd1.cpp @@ -441,7 +441,7 @@ void sns_rom_sdd1_device::device_start() save_item(NAME(m_dma[i].size), i); } - save_pointer(NAME(m_buffer.data.get()), 0x10000); + save_pointer(NAME(m_buffer.data), 0x10000); save_item(NAME(m_buffer.offset)); save_item(NAME(m_buffer.size)); save_item(NAME(m_buffer.ready)); diff --git a/src/devices/bus/svi3x8/slot/sv803.cpp b/src/devices/bus/svi3x8/slot/sv803.cpp index c5e53572d30..db79801530c 100644 --- a/src/devices/bus/svi3x8/slot/sv803.cpp +++ b/src/devices/bus/svi3x8/slot/sv803.cpp @@ -40,7 +40,7 @@ sv803_device::sv803_device(const machine_config &mconfig, const char *tag, devic void sv803_device::device_start() { // register for savestates - save_pointer(NAME(m_ram.get()), 0x4000); + save_pointer(NAME(m_ram), 0x4000); } //------------------------------------------------- diff --git a/src/devices/bus/svi3x8/slot/sv806.cpp b/src/devices/bus/svi3x8/slot/sv806.cpp index d9eb77e9f9c..833bcc546be 100644 --- a/src/devices/bus/svi3x8/slot/sv806.cpp +++ b/src/devices/bus/svi3x8/slot/sv806.cpp @@ -81,7 +81,7 @@ void sv806_device::device_start() { // register for savestates save_item(NAME(m_ram_enabled)); - save_pointer(NAME(m_ram.get()), 0x800); + save_pointer(NAME(m_ram), 0x800); } diff --git a/src/devices/bus/svi3x8/slot/sv807.cpp b/src/devices/bus/svi3x8/slot/sv807.cpp index 565154a6e7d..6ea6a77a6bc 100644 --- a/src/devices/bus/svi3x8/slot/sv807.cpp +++ b/src/devices/bus/svi3x8/slot/sv807.cpp @@ -99,8 +99,8 @@ void sv807_device::device_start() save_item(NAME(m_bk22)); save_item(NAME(m_bk31)); save_item(NAME(m_bk32)); - save_pointer(NAME(m_ram_bank1.get()), 0x8000); - save_pointer(NAME(m_ram_bank2.get()), 0x8000); + save_pointer(NAME(m_ram_bank1), 0x8000); + save_pointer(NAME(m_ram_bank2), 0x8000); } //------------------------------------------------- diff --git a/src/devices/bus/ti8x/graphlinkhle.cpp b/src/devices/bus/ti8x/graphlinkhle.cpp index 4e364f644ed..1b2cc9c2465 100644 --- a/src/devices/bus/ti8x/graphlinkhle.cpp +++ b/src/devices/bus/ti8x/graphlinkhle.cpp @@ -32,7 +32,7 @@ void graph_link_hle_device::device_start() { m_buffer = std::make_unique<u8 []>(BUFLEN); - save_pointer(NAME(m_buffer.get()), BUFLEN); + save_pointer(NAME(m_buffer), BUFLEN); } |