mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 13:50:40 +01:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue