diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-29 19:46:07 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-29 19:46:07 +0000 |
commit | 89405e752d5a507139eb304944c392e10bcf14c8 (patch) | |
tree | 221bfb7e12cc711b0fa05c84b3b33b7abfb45afb /libstdc++-v3 | |
parent | cf439ba9b27f2ac83298798ddc952ce593e14af0 (diff) | |
download | gcc-89405e752d5a507139eb304944c392e10bcf14c8.tar.gz |
2003-04-29 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (open): Change to single return.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66245 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/fstream.tcc | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 366f5a7754d..833004ccfec 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2003-04-29 Paolo Carlini <pcarlini@unitus.it> + * include/bits/fstream.tcc (open): Change to single return. + +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> diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc index 8d9002eaca2..0dba4455ff0 100644 --- a/libstdc++-v3/include/bits/fstream.tcc +++ b/libstdc++-v3/include/bits/fstream.tcc @@ -100,13 +100,10 @@ namespace std if ((__mode & ios_base::ate) && this->seekoff(0, ios_base::end, __mode) < 0) - { - // 27.8.1.3,4 - this->close(); - return __ret; - } - - __ret = this; + // 27.8.1.3,4 + this->close(); + else + __ret = this; } } return __ret; |