device_interface: Eliminate device pointer conversion (nw)

This commit is contained in:
AJR 2017-12-13 22:37:16 -05:00
parent 61d941630e
commit 5b5d527822
4 changed files with 3 additions and 4 deletions

View File

@ -241,7 +241,7 @@ DEVICE_IMAGE_LOAD_MEMBER( ti990_hdc_device, ti990_hd )
*/
DEVICE_IMAGE_UNLOAD_MEMBER( ti990_hdc_device, ti990_hd )
{
int id = get_id_from_device( image );
int id = get_id_from_device(&image.device());
hd_unit_t *d;
d = &m_d[id];

View File

@ -635,7 +635,6 @@ public:
device_t &device() { return m_device; }
const device_t &device() const { return m_device; }
operator device_t &() { return m_device; }
operator device_t *() { return &m_device; }
// iteration helpers
device_interface *interface_next() const { return m_interface_next; }

View File

@ -341,7 +341,7 @@ DEVICE_IMAGE_LOAD_MEMBER(n64_mess_state,n64_cart)
}
}
periphs->m_nvram_image = image;
periphs->m_nvram_image = &image.device();
logerror("cart length = %d\n", length);

View File

@ -111,7 +111,7 @@ static void _atari_load_proc(device_image_interface &image, bool is_created)
void atari_fdc_device::atari_load_proc(device_image_interface &image, bool is_created)
{
int id = floppy_get_drive(image);
int id = floppy_get_drive(&image.device());
int size, i;
m_drv[id].image = std::make_unique<uint8_t[]>(MAXSIZE);