mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-21 17:16:44 +00:00
Embraces std::make_[unique/shared] in place of .reset(new .
This commit is contained in:
@@ -301,7 +301,7 @@ void Drive::set_track(const std::shared_ptr<Track> &track) {
|
||||
void Drive::setup_track() {
|
||||
track_ = get_track();
|
||||
if(!track_) {
|
||||
track_.reset(new UnformattedTrack);
|
||||
track_ = std::make_shared<UnformattedTrack>();
|
||||
}
|
||||
|
||||
float offset = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user