1
0
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:
Thomas Harte
2019-12-21 23:34:25 -05:00
parent 25da5ebdae
commit e9318efeb6
8 changed files with 16 additions and 17 deletions

View File

@@ -136,5 +136,5 @@ std::shared_ptr<Track> D64::get_track_at_position(Track::Address address) {
Encodings::CommodoreGCR::encode_block(&sector_data[target_data_offset], end_of_data);
}
return std::shared_ptr<Track>(new PCMTrack(PCMSegment(data)));
return std::make_shared<PCMTrack>(PCMSegment(data));
}