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  <[EMAIL PROTECTED]>

        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 ();
 


Reply via email to