You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2008/01/24 15:58:31 UTC

svn commit: r614890 - /stdcxx/branches/4.2.x/include/string.cc

Author: faridz
Date: Thu Jan 24 06:58:28 2008
New Revision: 614890

URL: http://svn.apache.org/viewvc?rev=614890&view=rev
Log:
2008-01-24 Farid Zaripov <fa...@epam.com>

	* include/string.cc (replace): Use copy () method instead of move ().

Modified:
    stdcxx/branches/4.2.x/include/string.cc

Modified: stdcxx/branches/4.2.x/include/string.cc
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/string.cc?rev=614890&r1=614889&r2=614890&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/string.cc (original)
+++ stdcxx/branches/4.2.x/include/string.cc Thu Jan 24 06:58:28 2008
@@ -370,7 +370,7 @@
 
             traits_type::move (__beg + __n2, __beg + __n1, __rem);
 
-            traits_type::move (__beg, __s, __n2);
+            traits_type::copy (__beg, __s, __n2);
 
             traits_type::assign (_C_data [__size1], value_type ());