summaryrefslogtreecommitdiffstats
path: root/base/string_util.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 16:59:20 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 16:59:20 +0000
commit1fbb43878f7f68c1770a12847ecd46c0f1413b3e (patch)
treef9c9fab93e2b9880932800f77362ddec8287f97f /base/string_util.cc
parent40438e9595803e02eea730680dc066d13c36d4fc (diff)
downloadchromium_src-1fbb43878f7f68c1770a12847ecd46c0f1413b3e.zip
chromium_src-1fbb43878f7f68c1770a12847ecd46c0f1413b3e.tar.gz
chromium_src-1fbb43878f7f68c1770a12847ecd46c0f1413b3e.tar.bz2
fix bug in locale dependence check
this caused us to always go down the language independent path Review URL: http://codereview.chromium.org/10713 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.cc')
-rw-r--r--base/string_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/string_util.cc b/base/string_util.cc
index 4897f85..558bd459 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.