diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-12-09 10:01:12 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-12-09 10:01:12 -0500 |
commit | db82adaa99f2963bfbc21876fef4a6e0286b7c18 (patch) | |
tree | f10d588953a666335d8f534c225f4360bc6b8208 | |
parent | 6ba8b0f1ae4d98f9cfb7525aa90bf7d597da59bf (diff) |
bus/isa/hdc.cpp: Eliminate machine().device (nw)
-rw-r--r-- | src/devices/bus/isa/hdc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/isa/hdc.cpp b/src/devices/bus/isa/hdc.cpp index 2d0a6d4afa8..040f72f98c3 100644 --- a/src/devices/bus/isa/hdc.cpp +++ b/src/devices/bus/isa/hdc.cpp @@ -216,10 +216,10 @@ hard_disk_file *xt_hdc_device::pc_hdc_file(int id) switch( id ) { case 0: - img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("primary").c_str())); + img = subdevice<harddisk_image_device>("primary"); break; case 1: - img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("slave").c_str())); + img = subdevice<harddisk_image_device>("slave"); break; } if ( img == nullptr ) |