diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-24 09:37:52 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-24 09:37:52 +0000 |
commit | 36b53792aaf7ba05ac8f80bdfdacafb4b6383554 (patch) | |
tree | a042e65ef67c92e24761a2759c9e26688b91966a /libstdc++-v3 | |
parent | 92953f35af77e608800013f0631c1005e36c14bf (diff) | |
download | gcc-36b53792aaf7ba05ac8f80bdfdacafb4b6383554.tar.gz |
2004-02-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_put<>::_M_insert):
Prefer basic_string::append to operator+= and a temporary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78360 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | 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 6e2dc6e5e03..975ae639fdf 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-02-24 Paolo Carlini <pcarlini@suse.de> + + * include/bits/locale_facets.tcc (money_put<>::_M_insert): + Prefer basic_string::append to operator+= and a temporary. + 2004-02-23 Benjamin Kosnik <bkoz@redhat.com> * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler): diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index 6d9f2992365..cf01602ee38 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -1519,13 +1519,13 @@ namespace std // formatting is required, an arbitrary number of // fill spaces will be necessary. if (__testipad) - __res += string_type(__width - __len, __fill); + __res.append(__width - __len, __fill); else __res += __fill; break; case money_base::none: if (__testipad) - __res += string_type(__width - __len, __fill); + __res.append(__width - __len, __fill); break; } } @@ -1543,7 +1543,7 @@ namespace std __res.append(__width - __len, __fill); else // Before. - __res.insert(0, string_type(__width - __len, __fill)); + __res.insert(0, __width - __len, __fill); __len = __width; } |