diff options
| author | YongDo-Hyun <froster12@naver.com> | 2025-12-27 16:41:30 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-27 19:57:09 +0300 |
| commit | 6943e7f0a4533eb4e1c0e40854607974f152ec3b (patch) | |
| tree | fc4ba63340d8dc6631ca1d1f76a6b8e93e5cc303 /src/io | |
| parent | bf3635fd75c9afd736c826b1cc89e3d07afad887 (diff) | |
| download | Project-Tick-6943e7f0a4533eb4e1c0e40854607974f152ec3b.tar.gz Project-Tick-6943e7f0a4533eb4e1c0e40854607974f152ec3b.zip | |
fix: simplify exception handling in ozlibstream::close method
Signed-off-by: YongDo-Hyun <froster12@naver.com>
Diffstat (limited to 'src/io')
| -rw-r--r-- | src/io/ozlibstream.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/io/ozlibstream.cpp b/src/io/ozlibstream.cpp index c62f58dace..eefe38a91c 100644 --- a/src/io/ozlibstream.cpp +++ b/src/io/ozlibstream.cpp @@ -113,15 +113,7 @@ void ozlibstream::close() // stream, set the `badbit`, then restore the exception mask. exceptions(std::ios_base::goodbit); setstate(std::ios_base::badbit); - try - { - exceptions(old_ex); - } - catch(...) - { - // If anything unexpected happens while restoring the exception mask, - // swallow it — we don't want this to throw here. - } + exceptions(old_ex); } } // namespace zlib |
