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

Unified Diff: Source/wtf/Vector.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/wtf/NotFound.h ('k') | Source/wtf/text/StringImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Vector.h
diff --git a/Source/wtf/Vector.h b/Source/wtf/Vector.h
index fcb24192af0894c67dc0a613a43525895059b1b4..46073bafe65300b6a15fd395691812fef4237012 100644
--- a/Source/wtf/Vector.h
+++ b/Source/wtf/Vector.h
@@ -707,7 +707,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
template<typename U>
bool Vector<T, inlineCapacity>::contains(const U& value) const
{
- return find(value) != notFound;
+ return find(value) != kNotFound;
}
template<typename T, size_t inlineCapacity>
@@ -720,7 +720,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
if (*iter == value)
return iter - b;
}
- return notFound;
+ return kNotFound;
}
template<typename T, size_t inlineCapacity>
@@ -734,7 +734,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
if (*iter == value)
return iter - b;
}
- return notFound;
+ return kNotFound;
}
template<typename T, size_t inlineCapacity>
« no previous file with comments | « Source/wtf/NotFound.h ('k') | Source/wtf/text/StringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698