aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/fstream.tcc
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@unitus.it>2003-04-29 01:51:37 +0200
committerPaolo Carlini <paolo@gcc.gnu.org>2003-04-28 23:51:37 +0000
commit479a181108ee58622576b205b86793d42e964cbc (patch)
treefbd272a94e796d94fc7e968571ef340f15f122c6 /libstdc++-v3/include/bits/fstream.tcc
parent988ad90d003221abfb91157ef289f702b055a8fd (diff)
downloadgcc-479a181108ee58622576b205b86793d42e964cbc.zip
gcc-479a181108ee58622576b205b86793d42e964cbc.tar.gz
gcc-479a181108ee58622576b205b86793d42e964cbc.tar.bz2
std_streambuf.h (_M_buf): is currently used only for basic_filebuf, therefore move it there.
2003-04-28 Paolo Carlini <pcarlini@unitus.it> * include/std/std_streambuf.h (_M_buf): is currently used only for basic_filebuf, therefore move it there. (basic_streambuf(), ~basic_streambuf()): Adjust. * include/std/std_fstream.h (_M_buf): Moved here. * include/std/std_sstream.h (setbuf): Don't set _M_buf, is actually redundant for basic_stringbuf. (_M_really_sync): Likewise. * include/bits/fstream.tcc (basic_filebuf()): Adjust. * include/bits/sstream.tcc (seekoff): Adjust. From-SVN: r66193
Diffstat (limited to 'libstdc++-v3/include/bits/fstream.tcc')
-rw-r--r--libstdc++-v3/include/bits/fstream.tcc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc
index c03c0e5..8d9002e 100644
--- a/libstdc++-v3/include/bits/fstream.tcc
+++ b/libstdc++-v3/include/bits/fstream.tcc
@@ -76,8 +76,9 @@ namespace std
basic_filebuf<_CharT, _Traits>::
basic_filebuf() : __streambuf_type(), _M_file(&_M_lock),
_M_state_cur(__state_type()), _M_state_beg(__state_type()),
- _M_buf_size(BUFSIZ), _M_buf_allocated(false), _M_last_overflowed(false),
- _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false)
+ _M_buf(NULL), _M_buf_size(BUFSIZ), _M_buf_allocated(false),
+ _M_last_overflowed(false), _M_pback_cur_save(0),
+ _M_pback_end_save(0), _M_pback_init(false)
{ this->_M_buf_unified = true; }
template<typename _CharT, typename _Traits>