stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r617307 - /stdcxx/branches/4.2.x/include/istream.cc
Date Thu, 31 Jan 2008 23:53:08 GMT
Author: vitek
Date: Thu Jan 31 15:53:04 2008
New Revision: 617307

URL: http://svn.apache.org/viewvc?rev=617307&view=rev
Log:

2008-01-31  Travis Vitek  <vitek@roguewave.com>

	Merge 617300 from trunk.

	* include/istream.cc: Call clear() instead of erase() to avoid
	unnecessary overhead and for consistency.


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

Modified: stdcxx/branches/4.2.x/include/istream.cc
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/istream.cc?rev=617307&r1=617306&r2=617307&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/istream.cc (original)
+++ stdcxx/branches/4.2.x/include/istream.cc Thu Jan 31 15:53:04 2008
@@ -810,7 +810,7 @@
             const _RWSTD_SIZE_T __maxlen =
                 __is.width () ? __is.width () : __str.max_size ();
 
-            __str.erase ();
+            __str.clear ();
 
             const ctype<_CharT> &__ctp =
                 _USE_FACET (ctype<_CharT>, __is.getloc ());
@@ -986,7 +986,7 @@
 
         _TRY {
 
-            __str.erase ();
+            __str.clear ();
 
             const _RWSTD_SIZE_T __max_size = __str.max_size ();
 



Mime
View raw message