Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: components/copresence/timed_map.h

Issue 613043002: Switching to C++11 range-based for loops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/copresence/rpc/rpc_handler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/timed_map.h
diff --git a/components/copresence/timed_map.h b/components/copresence/timed_map.h
index 4367e59b65e658066785b9327f9ff371f07da585..7def76e4401b93c0c6786385daa634f9d64d9e8d 100644
--- a/components/copresence/timed_map.h
+++ b/components/copresence/timed_map.h
@@ -48,7 +48,7 @@ class TimedMap {
const ValueType& GetValue(const KeyType& key) {
ClearExpiredTokens();
- typename std::map<KeyType, ValueType>::const_iterator elt = map_.find(key);
+ auto elt = map_.find(key);
return elt == map_.end() ? kEmptyValue : elt->second;
}
« no previous file with comments | « components/copresence/rpc/rpc_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698