diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 00:14:28 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 00:14:28 +0000 |
commit | 6dce8adece39efbb9ae73aa12ca82d88d98da577 (patch) | |
tree | be636abf2c134ecba3ce7d89f8d90192f5e8987b /base/json_reader.cc | |
parent | b2e01376481b16129cb33f31e931cde9a9cdbb88 (diff) | |
download | chromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.zip chromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.tar.gz chromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.tar.bz2 |
Remove the locale parameter from the StringToDouble and
DoubleToString methods and only leave the
locale independent methods. It turns out this code is
only used in the json code and if people want locale
formatting, they should use ICU.
Review URL: http://codereview.chromium.org/11423
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/json_reader.cc')
-rw-r--r-- | base/json_reader.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/json_reader.cc b/base/json_reader.cc index 15d43cc..c0e019b 100644 --- a/base/json_reader.cc +++ b/base/json_reader.cc @@ -329,8 +329,7 @@ bool JSONReader::DecodeNumber(const Token& token, Value** node) { } double num_double; - if (base::StringToDouble(num_string, &num_double, base::LOCALE_INDEPENDENT) && - base::IsFinite(num_double)) { + if (StringToDouble(num_string, &num_double) && base::IsFinite(num_double)) { *node = Value::CreateRealValue(num_double); return true; } |