mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-24 05:18:36 +00:00
Embraces std::make_[unique/shared] in place of .reset(new .
This commit is contained in:
@@ -13,8 +13,8 @@ using namespace MSX;
|
||||
DiskROM::DiskROM(const std::vector<uint8_t> &rom) :
|
||||
WD1770(P1793),
|
||||
rom_(rom) {
|
||||
drives_[0].reset(new Storage::Disk::Drive(8000000, 300, 2));
|
||||
drives_[1].reset(new Storage::Disk::Drive(8000000, 300, 2));
|
||||
drives_[0] = std::make_shared<Storage::Disk::Drive>(8000000, 300, 2);
|
||||
drives_[1] = std::make_shared<Storage::Disk::Drive>(8000000, 300, 2);
|
||||
set_is_double_density(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user