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

Unified Diff: Source/core/html/NumberInputType.cpp

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/core/html/MediaFragmentURIParser.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/NumberInputType.cpp
diff --git a/Source/core/html/NumberInputType.cpp b/Source/core/html/NumberInputType.cpp
index 8778db7eeca98845d28c1c31cd5f9c7104682b23..7bffcad68088bc01d2f6aea2a1ab82dbdcc5a282 100644
--- a/Source/core/html/NumberInputType.cpp
+++ b/Source/core/html/NumberInputType.cpp
@@ -235,7 +235,7 @@ String NumberInputType::localizeValue(const String& proposedValue) const
if (proposedValue.isEmpty())
return proposedValue;
// We don't localize scientific notations.
- if (proposedValue.find(isE) != notFound)
+ if (proposedValue.find(isE) != kNotFound)
return proposedValue;
return element()->locale().convertToLocalizedNumber(proposedValue);
}
@@ -250,7 +250,7 @@ String NumberInputType::convertFromVisibleValue(const String& visibleValue) cons
if (visibleValue.isEmpty())
return visibleValue;
// We don't localize scientific notations.
- if (visibleValue.find(isE) != notFound)
+ if (visibleValue.find(isE) != kNotFound)
return visibleValue;
return element()->locale().convertFromLocalizedNumber(visibleValue);
}
« no previous file with comments | « Source/core/html/MediaFragmentURIParser.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698