diff options
author | Paolo Carlini <pcarlini@suse.de> | 2003-10-25 09:28:39 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-10-25 09:28:39 +0000 |
commit | 999bf60f6a7358d43fd2b53532d4df3772cde468 (patch) | |
tree | ad13150b3506cb33bf1e28c9c443838241be9062 | |
parent | 8822f4aaf9e42d27fba7672e752c2ee2c33da415 (diff) | |
download | gcc-999bf60f6a7358d43fd2b53532d4df3772cde468.zip gcc-999bf60f6a7358d43fd2b53532d4df3772cde468.tar.gz gcc-999bf60f6a7358d43fd2b53532d4df3772cde468.tar.bz2 |
locale_facets.tcc (num_get::_M_extract_int): __pos in only incremented, never used its value, remove it.
2003-10-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get::_M_extract_int):
__pos in only incremented, never used its value, remove it.
From-SVN: r72922
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets.tcc | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 41d4109..387d202 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-10-25 Paolo Carlini <pcarlini@suse.de> + + * include/bits/locale_facets.tcc (num_get::_M_extract_int): + __pos in only incremented, never used its value, remove it. + 2003-10-24 Robert Millan <robertmh@gnu.org> * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index 94d41a5..0c323dd 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -288,14 +288,12 @@ namespace std __base = 10; // First check for sign. - int __pos = 0; char_type __c = *__beg; const bool __plus = __traits_type::eq(__c, __lit[_S_iplus]); if ((__plus || __traits_type::eq(__c, __lit[_S_iminus])) && __beg != __end) { __xtrc += __plus ? _S_atoms_in[_S_iplus] : _S_atoms_in[_S_iminus]; - ++__pos; __c = *(++__beg); } @@ -311,7 +309,6 @@ namespace std if (__found_zero) { __xtrc += _S_atoms_in[_S_izero]; - ++__pos; if (__basefield == 0) { const bool __x = __traits_type::eq(__c, __lit[_S_ix]); @@ -319,7 +316,6 @@ namespace std && __beg != __end) { __xtrc += __x ? _S_atoms_in[_S_ix] : _S_atoms_in[_S_iX]; - ++__pos; __c = *(++__beg); __base = 16; } @@ -333,7 +329,6 @@ namespace std if (__traits_type::eq(__c, __lit[_S_izero]) && __beg != __end) { __xtrc += _S_atoms_in[_S_izero]; - ++__pos; __c = *(++__beg); const bool __x = __traits_type::eq(__c, __lit[_S_ix]); @@ -341,7 +336,6 @@ namespace std && __beg != __end) { __xtrc += __x ? _S_atoms_in[_S_ix] : _S_atoms_in[_S_iX]; - ++__pos; __c = *(++__beg); } } @@ -365,7 +359,6 @@ namespace std { // Try first for acceptable digit; record it if found. __xtrc += _S_atoms_in[__p - __lit]; - ++__pos; ++__sep_pos; __c = *(++__beg); } |