This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Minor tweak to __pad<>::_S_pad
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 23 Sep 2008 12:10:59 +0200
- Subject: [v3] Minor tweak to __pad<>::_S_pad
Hi,
tested x86_64-linux, committed to mainline.
Paolo.
/////////////////////////
2008-09-23 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't use const
by value parameters.
* include/bits/locale_facets.h (__pad<>::_S_pad): Likewise.
Index: include/bits/locale_facets.tcc
===================================================================
*** include/bits/locale_facets.tcc (revision 140583)
--- include/bits/locale_facets.tcc (working copy)
*************** _GLIBCXX_END_LDBL_NAMESPACE
*** 1221,1228 ****
void
__pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill,
_CharT* __news, const _CharT* __olds,
! const streamsize __newlen,
! const streamsize __oldlen)
{
const size_t __plen = static_cast<size_t>(__newlen - __oldlen);
const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield;
--- 1221,1227 ----
void
__pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill,
_CharT* __news, const _CharT* __olds,
! streamsize __newlen, streamsize __oldlen)
{
const size_t __plen = static_cast<size_t>(__newlen - __oldlen);
const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield;
Index: include/bits/locale_facets.h
===================================================================
*** include/bits/locale_facets.h (revision 140583)
--- include/bits/locale_facets.h (working copy)
*************** _GLIBCXX_BEGIN_NAMESPACE(std)
*** 94,101 ****
{
static void
_S_pad(ios_base& __io, _CharT __fill, _CharT* __news,
! const _CharT* __olds, const streamsize __newlen,
! const streamsize __oldlen);
};
// Used by both numeric and monetary facets.
--- 94,100 ----
{
static void
_S_pad(ios_base& __io, _CharT __fill, _CharT* __news,
! const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
};
// Used by both numeric and monetary facets.