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

Unified Diff: Source/wtf/NotFound.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/HashTraits.h ('k') | Source/wtf/Vector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/NotFound.h
diff --git a/Source/wtf/NotFound.h b/Source/wtf/NotFound.h
index 4263bcecabed4fff4dc6b4987425dd34e4d9285f..7c7d0c3cfb4c0ba231534d750da4b56161542463 100644
--- a/Source/wtf/NotFound.h
+++ b/Source/wtf/NotFound.h
@@ -27,11 +27,9 @@
#define NotFound_h
namespace WTF {
+const size_t kNotFound = static_cast<size_t>(-1);
+}
- const size_t notFound = static_cast<size_t>(-1);
-
-} // namespace WTF
-
-using WTF::notFound;
+using WTF::kNotFound;
#endif // NotFound_h
« no previous file with comments | « Source/wtf/HashTraits.h ('k') | Source/wtf/Vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698