1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-07 05:17:22 +00:00

Eliminate various unnecessary uses of std::make_pair.

This commit is contained in:
Thomas Harte
2024-05-29 21:42:46 -04:00
parent f133000656
commit eb9e5fb727
7 changed files with 10 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ template <typename T> void DiskImageHolder<T>::flush_tracks() {
using TrackMap = std::map<Track::Address, std::shared_ptr<Track>>;
std::shared_ptr<TrackMap> track_copies(new TrackMap);
for(const auto &address : unwritten_tracks_) {
track_copies->insert(std::make_pair(address, std::shared_ptr<Track>(cached_tracks_[address]->clone())));
track_copies->insert({address, std::shared_ptr<Track>(cached_tracks_[address]->clone())});
}
unwritten_tracks_.clear();