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

Unified Diff: Source/core/platform/text/mac/LocaleMac.mm

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
Index: Source/core/platform/text/mac/LocaleMac.mm
diff --git a/Source/core/platform/text/mac/LocaleMac.mm b/Source/core/platform/text/mac/LocaleMac.mm
index 1dbcf4d0b94b0e50a7c1f25ac3e60899b7965d3b..fdcb33330191d94606023cf02f936424a850e5e6 100644
--- a/Source/core/platform/text/mac/LocaleMac.mm
+++ b/Source/core/platform/text/mac/LocaleMac.mm
@@ -49,7 +49,7 @@ static inline String languageFromLocale(const String& locale)
String normalizedLocale = locale;
normalizedLocale.replace('-', '_');
size_t separatorPosition = normalizedLocale.find('_');
- if (separatorPosition == notFound)
+ if (separatorPosition == kNotFound)
return normalizedLocale;
return normalizedLocale.left(separatorPosition);
}
« no previous file with comments | « Source/core/platform/text/LocaleToScriptMappingDefault.cpp ('k') | Source/core/platform/text/win/LocaleWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698