locale_facets.tcc (_M_extract_float, [...]): Remove a wrong comment and simplify...
authorPaolo Carlini <pcarlini@suse.de>
Sun, 23 Nov 2003 13:03:59 +0000 (13:03 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 23 Nov 2003 13:03:59 +0000 (13:03 +0000)
2003-11-23  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (_M_extract_float,
_M_extract_int): Remove a wrong comment and simplify
the corresponding code using char_traits::find().

From-SVN: r73853

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index 19de20cc3339e76e6540ff2a778ce663fc9ab107..05e0d8fd8bee5e45c3ea82bbdd064061b41a3243 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-23  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (_M_extract_float,
+       _M_extract_int): Remove a wrong comment and simplify
+       the corresponding code using char_traits::find().
+
 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
 
        * config/locale/gnu/monetary_members.cc
index 23acf985b6b663f06e162af201c3dd9b82b70040..3b5c484fa7b7ffe68ac5c058b80d9dfd7dc8f87a 100644 (file)
@@ -175,8 +175,7 @@ namespace std
          const char_type __c = *__beg;
           const char_type* __p = __traits_type::find(__lit + _S_izero, 10, 
                                                     __c);
-          // NB: strchr returns true for __c == 0x0
-          if (__p && !__traits_type::eq(__c, char_type()))
+          if (__p)
            {
              // Try first for acceptable digit; record it if found.
              __xtrc += _S_atoms_in[__p - __lit];
@@ -352,8 +351,7 @@ namespace std
          const char_type __c = *__beg;
           const char_type* __p = __traits_type::find(__lit + _S_izero,
                                                     __len, __c);
-          // NB: strchr returns true for __c == 0x0
-          if (__p && !__traits_type::eq(__c, char_type()))
+          if (__p)
            {
              // Try first for acceptable digit; record it if found.
              __xtrc += _S_atoms_in[__p - __lit];