File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,11 @@ class ExportFormatJSON : public ExportFormat {
6666 osmium::io::fsync fsync,
6767 const options_type& options);
6868
69- ~ExportFormatJSON () override {
70- close ();
69+ ~ExportFormatJSON () noexcept override {
70+ try {
71+ close ();
72+ } catch (...) {
73+ }
7174 }
7275
7376 void node (const osmium::Node& node) override ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class ExportFormatPg : public ExportFormat {
6464 osmium::io::fsync fsync,
6565 const options_type& options);
6666
67- ~ExportFormatPg () override {
67+ ~ExportFormatPg () noexcept override {
6868 try {
6969 close ();
7070 } catch (...) {
Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ class ExportFormatText : public ExportFormat {
5353 osmium::io::fsync fsync,
5454 const options_type& options);
5555
56- ~ExportFormatText () override {
57- close ();
56+ ~ExportFormatText () noexcept override {
57+ try {
58+ close ();
59+ } catch (...) {
60+ }
5861 }
5962
6063 void node (const osmium::Node& node) override ;
You can’t perform that action at this time.
0 commit comments