aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@unitus.it>2003-04-29 19:47:38 +0200
committerPaolo Carlini <paolo@gcc.gnu.org>2003-04-29 17:47:38 +0000
commitd4be2966f38c288182d0addf8b86e590e5b4fce9 (patch)
tree21e0b678584b6d55b831138b27fc2880e8ee74ee
parent1be3f80ff80bd71121dede75e3110bf5d669e263 (diff)
downloadgcc-d4be2966f38c288182d0addf8b86e590e5b4fce9.zip
gcc-d4be2966f38c288182d0addf8b86e590e5b4fce9.tar.gz
gcc-d4be2966f38c288182d0addf8b86e590e5b4fce9.tar.bz2
std_sstream.h (underflow): Change to single return.
2003-04-29 Paolo Carlini <pcarlini@unitus.it> * include/std/std_sstream.h (underflow): Change to single return. From-SVN: r66234
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/std/std_sstream.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9dbc3a1..366f5a7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-29 Paolo Carlini <pcarlini@unitus.it>
+
+ * include/std/std_sstream.h (underflow): Change to single return.
+
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_buf): is currently
diff --git a/libstdc++-v3/include/std/std_sstream.h b/libstdc++-v3/include/std/std_sstream.h
index cd8faa0..10fe057 100644
--- a/libstdc++-v3/include/std/std_sstream.h
+++ b/libstdc++-v3/include/std/std_sstream.h
@@ -190,10 +190,12 @@ namespace std
virtual int_type
underflow()
{
+ int_type __ret;
if (this->_M_in_cur < this->_M_in_end)
- return traits_type::to_int_type(*this->_M_in_cur);
+ __ret = traits_type::to_int_type(*this->_M_in_cur);
else
- return traits_type::eof();
+ __ret = traits_type::eof();
+ return __ret;
}
// [documentation is inherited]