diff --git a/api/test/peerconnection_quality_test_fixture.h b/api/test/peerconnection_quality_test_fixture.h index 0e7d85adf6..4961fb59e4 100644 --- a/api/test/peerconnection_quality_test_fixture.h +++ b/api/test/peerconnection_quality_test_fixture.h @@ -422,6 +422,7 @@ class PeerConnectionE2EQualityTestFixture { // subscribed to with specific resolution. std::vector GetSubscribedPeers() const { std::vector subscribed_streams; + subscribed_streams.reserve(peers_resolution_.size()); for (const auto& entry : peers_resolution_) { subscribed_streams.push_back(entry.first); }