From cc9d1c78ef92f6a29dc0bb4b4531504320267a20 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 29 Apr 2003 21:46:07 +0200 Subject: fstream.tcc (open): Change to single return. 2003-04-29 Paolo Carlini * include/bits/fstream.tcc (open): Change to single return. From-SVN: r66245 --- libstdc++-v3/include/bits/fstream.tcc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libstdc++-v3/include/bits/fstream.tcc') diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc index 8d9002e..0dba445 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; -- cgit v1.1