From: Paolo Carlini Date: Wed, 1 Oct 2003 15:43:07 +0000 (+0200) Subject: locale_facets.tcc (time_put::put): Minor tweak to the previous commit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=530ce5517ce00a43761d303a614b25d3371dd030;p=gcc.git locale_facets.tcc (time_put::put): Minor tweak to the previous commit. 2003-10-01 Paolo Carlini * include/bits/locale_facets.tcc (time_put::put): Minor tweak to the previous commit. From-SVN: r71977 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4b776c89e21..7c1550a76b1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-10-01 Paolo Carlini + + * include/bits/locale_facets.tcc (time_put::put): Minor + tweak to the previous commit. + 2003-10-01 Paolo Carlini PR libstdc++/12439 diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index 62127b9e7fd..620e6e22d46 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -2007,9 +2007,9 @@ namespace std ctype<_CharT> const& __ctype = use_facet >(__loc); while (__beg != __end) { - const _CharT* __tmp = __beg; + const _CharT __tmp = *__beg; ++__beg; - if (__ctype.narrow(*__tmp, 0) == '%' && __beg != __end) + if (__ctype.narrow(__tmp, 0) == '%' && __beg != __end) { char __format; char __mod = 0; @@ -2026,7 +2026,7 @@ namespace std __s = this->do_put(__s, __io, __fill, __tm, __format, __mod); } else - *__s++ = *__tmp; + *__s++ = __tmp; } return __s; }