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

Unified Diff: Source/wtf/HashMap.h

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « Source/weborigin/SecurityPolicy.cpp ('k') | Source/wtf/HashTraits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/HashMap.h
diff --git a/Source/wtf/HashMap.h b/Source/wtf/HashMap.h
index 3a0c246f5a709d496b8d9cdef470012cdd81b906..7ae3511d53be738d974c7ef9648f565cc6bcb8dc 100644
--- a/Source/wtf/HashMap.h
+++ b/Source/wtf/HashMap.h
@@ -432,11 +432,11 @@ namespace WTF {
typedef typename HashMap<T, U, V, W, X>::const_iterator const_iterator;
- const_iterator end = a.end();
- const_iterator notFound = b.end();
- for (const_iterator it = a.begin(); it != end; ++it) {
+ const_iterator aEnd = a.end();
+ const_iterator bEnd = b.end();
+ for (const_iterator it = a.begin(); it != aEnd; ++it) {
const_iterator bPos = b.find(it->key);
- if (bPos == notFound || it->value != bPos->value)
+ if (bPos == bEnd || it->value != bPos->value)
return false;
}
« no previous file with comments | « Source/weborigin/SecurityPolicy.cpp ('k') | Source/wtf/HashTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698