Codechange: Emplace std::pair into vectors.
This creates the pair in the vector, instead of creating it then copying it in.
This commit is contained in:
committed by
Peter Nelson
parent
ed2db80990
commit
40fa45a76a
@@ -113,7 +113,7 @@ void LinkGraphOverlay::RebuildCache()
|
||||
}
|
||||
}
|
||||
if (this->IsPointVisible(pta, &dpi)) {
|
||||
this->cached_stations.push_back(std::make_pair(from, supply));
|
||||
this->cached_stations.emplace_back(from, supply);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user