You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by vi...@apache.org on 2008/02/01 00:49:45 UTC

svn commit: r617300 - /stdcxx/trunk/include/istream.cc

Author: vitek
Date: Thu Jan 31 15:49:42 2008
New Revision: 617300

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

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

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


Modified:
    stdcxx/trunk/include/istream.cc

Modified: stdcxx/trunk/include/istream.cc
URL: http://svn.apache.org/viewvc/stdcxx/trunk/include/istream.cc?rev=617300&r1=617299&r2=617300&view=diff
==============================================================================
--- stdcxx/trunk/include/istream.cc (original)
+++ stdcxx/trunk/include/istream.cc Thu Jan 31 15:49:42 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 ();