summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYongDo-Hyun <froster12@naver.com>2025-12-27 16:41:30 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-03-27 19:57:09 +0300
commit6943e7f0a4533eb4e1c0e40854607974f152ec3b (patch)
treefc4ba63340d8dc6631ca1d1f76a6b8e93e5cc303 /src
parentbf3635fd75c9afd736c826b1cc89e3d07afad887 (diff)
downloadProject-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')
-rw-r--r--src/io/ozlibstream.cpp10
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