mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-24 05:14:58 +08:00
locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s.
2003-10-01 Nathan Myers <ncm@cantrip.org> * include/bits/locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s. From-SVN: r71980
This commit is contained in:
parent
9dfc2ec225
commit
e39dd1ce52
@ -1,3 +1,8 @@
|
||||
2003-10-01 Nathan Myers <ncm@cantrip.org>
|
||||
|
||||
* include/bits/locale_facets.tcc (time_put::put): Avoid
|
||||
expensive *__s++, in favor of *__s, ++__s.
|
||||
|
||||
2003-10-01 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* include/bits/locale_facets.tcc (time_put::put): Minor
|
||||
|
@ -2026,7 +2026,10 @@ namespace std
|
||||
__s = this->do_put(__s, __io, __fill, __tm, __format, __mod);
|
||||
}
|
||||
else
|
||||
*__s++ = __tmp;
|
||||
{
|
||||
*__s = __tmp;
|
||||
++__s;
|
||||
}
|
||||
}
|
||||
return __s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user