Author: sebor
Date: Tue Jan 15 21:40:51 2008
New Revision: 612358

URL: http://svn.apache.org/viewvc?rev=612358&view=rev
Log:
2008-01-15  Martin Sebor  <[EMAIL PROTECTED]>

        STDCXX-699
        * fstream (basic_filebuf): Qualified a call to the virtual member
        function setbuf() made from the ctor with the name of the class
        to silence HP aCC 6 remark #4282-D: virtual function is called
        from constructor/destructor.

Modified:
    stdcxx/trunk/include/fstream

Modified: stdcxx/trunk/include/fstream
URL: 
http://svn.apache.org/viewvc/stdcxx/trunk/include/fstream?rev=612358&r1=612357&r2=612358&view=diff
==============================================================================
--- stdcxx/trunk/include/fstream (original)
+++ stdcxx/trunk/include/fstream Tue Jan 15 21:40:51 2008
@@ -23,7 +23,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2008 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -109,7 +109,9 @@
           _C_cur_pos (pos_type (off_type (-1))),
           _C_beg_pos (pos_type (off_type (-1))),
           _C_pbacksize (0) {
-        setbuf (0, _RWSTD_DEFAULT_BUFSIZE);
+        // call the virtual setbuf defined in this class (but
+        // not an override defined in a class derived from it)
+        basic_filebuf::setbuf (0, _RWSTD_DEFAULT_BUFSIZE);
     }
 
 #if     defined (_RWSTD_NO_EXT_FILEBUF)            \


Reply via email to