fstream.tcc (open): Change to single return.
authorPaolo Carlini <pcarlini@unitus.it>
Tue, 29 Apr 2003 19:46:07 +0000 (21:46 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 29 Apr 2003 19:46:07 +0000 (19:46 +0000)
2003-04-29  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/fstream.tcc (open): Change to single return.

From-SVN: r66245

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc

index 366f5a7754d3d1a1f86705e40355fbafc15d9f18..833004ccfecbca2b77e91ddabaea6a8a23a3e598 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 8d9002eaca281fd10a0d9fa7275a4e5690006823..0dba4455ff0b7179a523e3960a41600318b325a3 100644 (file)
@@ -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;