From: Wolfgang Bangerth Date: Thu, 18 Jul 2024 23:15:14 +0000 (-0600) Subject: No need to explicity call 'close()' at the end of a scope. X-Git-Tag: v9.6.0-rc1~56^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1179495132066f7db7da6e8a8f757285c0346c7;p=dealii.git No need to explicity call 'close()' at the end of a scope. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 87623aa531..ba3a0d318b 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -869,8 +869,6 @@ namespace internal // Write packed data. file.write(reinterpret_cast(src_data_fixed.data()), src_data_fixed.size() * sizeof(char)); - - file.close(); } // @@ -893,8 +891,6 @@ namespace internal // Write packed data. file.write(reinterpret_cast(src_data_variable.data()), src_data_variable.size() * sizeof(char)); - - file.close(); } } } @@ -1093,8 +1089,6 @@ namespace internal // Read packed data. file.read(reinterpret_cast(dest_data_fixed.data()), dest_data_fixed.size() * sizeof(char)); - - file.close(); } // @@ -1121,8 +1115,6 @@ namespace internal dest_data_variable.resize(size); file.read(reinterpret_cast(dest_data_variable.data()), dest_data_variable.size() * sizeof(char)); - - file.close(); } } }