From 9da481b060da9be29ffe15b2b9958647081229c9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 30 Apr 2018 22:08:51 -0400 Subject: [PATCH] Slightly simplifies syntax. --- Storage/Disk/DiskImage/Formats/HFE.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Storage/Disk/DiskImage/Formats/HFE.cpp b/Storage/Disk/DiskImage/Formats/HFE.cpp index 05549a2cb..59c6f3636 100644 --- a/Storage/Disk/DiskImage/Formats/HFE.cpp +++ b/Storage/Disk/DiskImage/Formats/HFE.cpp @@ -79,9 +79,7 @@ std::shared_ptr HFE::get_track_at_position(Track::Address address) { // Flip bytes; HFE's preference is that the least-significant bit // is serialised first, but PCMTrack posts the most-significant first. Storage::Data::BitReverse::reverse(segment.data); - - std::shared_ptr track(new PCMTrack(segment)); - return track; + return std::make_shared(segment); } void HFE::set_tracks(const std::map> &tracks) {