mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-29 13:26:33 +01:00
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:
parent
bf6e60e5ce
commit
7b07ab93e8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue