From 530ce5517ce00a43761d303a614b25d3371dd030 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 1 Oct 2003 17:43:07 +0200 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/locale_facets.tcc | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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; } -- 2.30.2