PCLF: Reserve vector before pushing.

Bug: None
Change-Id: I961f555085032330028b426e46a2c4ac576a2b03
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/260283
Commit-Queue: Rasmus Brandt <brandtr@webrtc.org>
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36686}
This commit is contained in:
Rasmus Brandt 2022-04-28 11:03:07 +02:00 committed by WebRTC LUCI CQ
parent d425f506ad
commit e890e36c99

View file

@ -422,6 +422,7 @@ class PeerConnectionE2EQualityTestFixture {
// subscribed to with specific resolution.
std::vector<std::string> GetSubscribedPeers() const {
std::vector<std::string> subscribed_streams;
subscribed_streams.reserve(peers_resolution_.size());
for (const auto& entry : peers_resolution_) {
subscribed_streams.push_back(entry.first);
}