summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/include/std/std_streambuf.h
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-02-10 05:47:54 +0000
committerkan <kan@FreeBSD.org>2003-02-10 05:47:54 +0000
commit78fa66448c770aa99b6f69113061eb5d77581627 (patch)
tree548333fba089bbaa9f6f60f38860213a7f7ccf69 /contrib/libstdc++/include/std/std_streambuf.h
parent793833d7a78bb624965885760593495e7079d705 (diff)
downloadFreeBSD-src-78fa66448c770aa99b6f69113061eb5d77581627.zip
FreeBSD-src-78fa66448c770aa99b6f69113061eb5d77581627.tar.gz
Gcc 3.2.2-release C++ support bits.
Diffstat (limited to 'contrib/libstdc++/include/std/std_streambuf.h')
-rw-r--r--contrib/libstdc++/include/std/std_streambuf.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/contrib/libstdc++/include/std/std_streambuf.h b/contrib/libstdc++/include/std/std_streambuf.h
index 491570e..db36ed3 100644
--- a/contrib/libstdc++/include/std/std_streambuf.h
+++ b/contrib/libstdc++/include/std/std_streambuf.h
@@ -1,6 +1,6 @@
// Stream buffer classes -*- C++ -*-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -243,7 +243,6 @@ namespace std
_M_buf_size = 0;
_M_buf_size_opt = 0;
_M_mode = ios_base::openmode(0);
- _M_buf_locale_init = false;
}
// Locales:
@@ -257,12 +256,7 @@ namespace std
locale
getloc() const
- {
- if (_M_buf_locale_init)
- return _M_buf_locale;
- else
- return locale();
- }
+ { return _M_buf_locale; }
// Buffer and positioning:
__streambuf_type*
@@ -351,7 +345,7 @@ namespace std
_M_buf_unified(false), _M_in_beg(0), _M_in_cur(0), _M_in_end(0),
_M_out_beg(0), _M_out_cur(0), _M_out_end(0),
_M_mode(ios_base::openmode(0)), _M_buf_locale(locale()),
- _M_buf_locale_init(false), _M_pback_cur_save(0), _M_pback_end_save(0),
+ _M_pback_cur_save(0), _M_pback_end_save(0),
_M_pback_init(false)
{ }
@@ -405,7 +399,6 @@ namespace std
virtual void
imbue(const locale& __loc)
{
- _M_buf_locale_init = true;
if (_M_buf_locale != __loc)
_M_buf_locale = __loc;
}
OpenPOWER on IntegriCloud