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

Unified Diff: base/string_util.cc

Issue 10713: fix bug in locale dependence check (Closed)
Patch Set: Created 12 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util.cc
diff --git a/base/string_util.cc b/base/string_util.cc
index 4897f85ec15686647616d164f063d273fd18af6d..558bd45933762a19052c5e44ba47174277efb652 100644
--- a/base/string_util.cc
+++ b/base/string_util.cc
@@ -240,7 +240,7 @@ class WStringToDoubleTraits {
static inline value_type convert_func(const string_type::value_type* str,
string_type::value_type** endptr,
bool locale_dependent) {
- if (base::LOCALE_DEPENDENT == locale_dependent) {
+ if (locale_dependent) {
return wcstod(str, endptr);
} else {
// Because dmg_fp::strtod does not like wchar_t, we convert it to ASCII.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698