stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r552661 - /incubator/stdcxx/trunk/include/sstream
Date Tue, 03 Jul 2007 04:22:46 GMT
Author: sebor
Date: Mon Jul  2 21:22:43 2007
New Revision: 552661

URL: http://svn.apache.org/viewvc?view=rev&rev=552661
Log:
2007-07-02  Martin Sebor  <sebor@roguewave.com>

	* sstream (str): Corrected formatting problems.

Modified:
    incubator/stdcxx/trunk/include/sstream

Modified: incubator/stdcxx/trunk/include/sstream
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/sstream?view=diff&rev=552661&r1=552660&r2=552661
==============================================================================
--- incubator/stdcxx/trunk/include/sstream (original)
+++ incubator/stdcxx/trunk/include/sstream Mon Jul  2 21:22:43 2007
@@ -177,28 +177,30 @@
     void _C_catchup (char_type*);
 };
 
+
 template <class _CharT, class _Traits, class _Allocator>
 inline basic_string<_CharT, _Traits, _Allocator>
 basic_stringbuf<_CharT, _Traits, _Allocator>::
-str () const {
-
-    const char_type * __first = 0;
-    const char_type * __last = 0;
+str () const
+{
+    const char_type* __first = 0;
+    const char_type* __last  = 0;
 
     if (this->_C_is_out ()) {
         // in out only or in|out mode
         __first = this->pbase ();
-        __last = this->egptr () < this->pptr () ?
+        __last  = this->egptr () < this->pptr () ?
             this->pptr () : this->egptr ();
     }
     else if (this->_C_is_in ()) {
         // in in only mode
         __first = this->eback ();
-        __last = this->egptr ();
+        __last  = this->egptr ();
     }
 
     return _C_string_type (__first, __last - __first);
 }
+
 
 template <class _CharT, class _Traits, class _Allocator>
 inline _RWSTD_STREAMSIZE



Mime
View raw message