]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
locale_facets.tcc (money_put<>::_M_insert): Prefer basic_string::append to operator...
authorPaolo Carlini <pcarlini@suse.de>
Tue, 24 Feb 2004 09:37:52 +0000 (09:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 24 Feb 2004 09:37:52 +0000 (09:37 +0000)
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.

From-SVN: r78360

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index 6e2dc6e5e039bf70d81bc668aa51b5b38f285be0..975ae639fdf3083469ec9c0e005f5f3c8f731f1f 100644 (file)
@@ -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):
index 6d9f2992365577573caaec756261a5c14ceedf71..cf01602ee381d8dad7f929a8a196de0fc986b4b7 100644 (file)
@@ -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;
              }