Use auto to avoid implicit conversion.

Bug: None
Change-Id: I2855cbd5f9afb33bb00497c9f9eb17adebf82329
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/311700
Auto-Submit: Taylor Brandstetter <deadbeef@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40423}
This commit is contained in:
Taylor Brandstetter 2023-07-11 15:49:25 -07:00 committed by WebRTC LUCI CQ
parent bf6e60e5ce
commit 7b07ab93e8

View file

@ -63,7 +63,7 @@ void ExpectEqual(const std::map<TKey, TValue>& expected,
ASSERT_EQ(expected.size(), actual.size());
// Maps have unique keys, so if size is equal, it is enough to check
// that all the keys (and values) from one map exist in the other.
for (const std::pair<TKey, TValue>& pair : expected) {
for (const auto& pair : expected) {
const_iterator iter = actual.find(pair.first);
EXPECT_NE(iter, actual.end()) << "Key: " << pair.first << " not found";
EXPECT_EQ(pair.second, iter->second);