mirror of
https://github.com/TomHarte/CLK.git
synced 2025-11-02 02:16:18 +00:00
Switches to std::make_shared/make_unique in a bunch of applicable places.
No doubt many more similar improvements are available, these are just the ones that were easy to find.
This commit is contained in:
@@ -136,5 +136,5 @@ std::shared_ptr<Track> D64::get_track_at_position(Track::Address address) {
|
||||
Encodings::CommodoreGCR::encode_block(§or_data[target_data_offset], end_of_data);
|
||||
}
|
||||
|
||||
return std::shared_ptr<Track>(new PCMTrack(PCMSegment(data)));
|
||||
return std::make_shared<PCMTrack>(PCMSegment(data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user