| commit | e890e36c99df667f25f7684a4fb26e417d4ecd9f | [log] [tgz] |
|---|---|---|
| author | Rasmus Brandt <brandtr@webrtc.org> | Thu Apr 28 09:03:07 2022 |
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 28 09:49:34 2022 |
| tree | 61c4f6c0513858ad0eb32bb95d253770d7eaf366 | |
| parent | d425f506ad0ff0f13013c3dc479cbb4630714f02 [diff] |
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}
diff --git a/api/test/peerconnection_quality_test_fixture.h b/api/test/peerconnection_quality_test_fixture.h index 0e7d85a..4961fb5 100644 --- a/api/test/peerconnection_quality_test_fixture.h +++ b/api/test/peerconnection_quality_test_fixture.h
@@ -422,6 +422,7 @@ // 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); }