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:
parent
d425f506ad
commit
e890e36c99
@ -422,6 +422,7 @@ class PeerConnectionE2EQualityTestFixture {
|
|||||||
// subscribed to with specific resolution.
|
// subscribed to with specific resolution.
|
||||||
std::vector<std::string> GetSubscribedPeers() const {
|
std::vector<std::string> GetSubscribedPeers() const {
|
||||||
std::vector<std::string> subscribed_streams;
|
std::vector<std::string> subscribed_streams;
|
||||||
|
subscribed_streams.reserve(peers_resolution_.size());
|
||||||
for (const auto& entry : peers_resolution_) {
|
for (const auto& entry : peers_resolution_) {
|
||||||
subscribed_streams.push_back(entry.first);
|
subscribed_streams.push_back(entry.first);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user