diff options
author | Paolo Carlini <pcarlini@suse.de> | 2003-11-30 15:18:27 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-11-30 15:18:27 +0000 |
commit | 11816ba2800e4671ca9e9cc737b1c2fb9e9ba4b4 (patch) | |
tree | 8749945535baa39f2f186c878940b86a43605c1b | |
parent | 6a09dded443841f571611148594da717f71cfbae (diff) | |
download | gcc-11816ba2800e4671ca9e9cc737b1c2fb9e9ba4b4.zip gcc-11816ba2800e4671ca9e9cc737b1c2fb9e9ba4b4.tar.gz gcc-11816ba2800e4671ca9e9cc737b1c2fb9e9ba4b4.tar.bz2 |
codecvt_members.cc (codecvt::do_in): Minor stylistic tweak.
2003-11-30 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/codecvt_members.cc (codecvt::do_in):
Minor stylistic tweak.
From-SVN: r74060
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/config/locale/gnu/codecvt_members.cc | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b0030a5..9dd4d00 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2003-11-30 Paolo Carlini <pcarlini@suse.de> + * config/locale/gnu/codecvt_members.cc (codecvt::do_in): + Minor stylistic tweak. + +2003-11-30 Paolo Carlini <pcarlini@suse.de> + * include/bits/locale_facets.tcc (num_put::do_put(..., bool)): Minor tweaks, consistent with the style used in other facets. diff --git a/libstdc++-v3/config/locale/gnu/codecvt_members.cc b/libstdc++-v3/config/locale/gnu/codecvt_members.cc index aa9fcec..b0c9891 100644 --- a/libstdc++-v3/config/locale/gnu/codecvt_members.cc +++ b/libstdc++-v3/config/locale/gnu/codecvt_members.cc @@ -152,7 +152,7 @@ namespace std // In case of error, in order to stop at the exact place we // have to start again from the beginning with a series of // mbrtowc. - for (;;) + for (;; ++__to_next) { const size_t __conv_err = mbrtowc(__to_next, __from, __from_end - __from, @@ -161,7 +161,6 @@ namespace std || __conv_err == static_cast<size_t>(-2)) break; __from += __conv_err; - ++__to_next; } __from_next = __from; __state = __tmp_state; |