diff options
| author | YongDo-Hyun <froster12@naver.com> | 2025-12-27 01:06:26 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-27 19:57:09 +0300 |
| commit | df0519bea5390ac8f3d9a0e168e2f799bd068985 (patch) | |
| tree | e05da30517566a26ae3380c26bb38a88c9c92f24 /src/io/ozlibstream.cpp | |
| parent | a89a6eac665c1b53d2c511d2e8ccb40e3a6949c4 (diff) | |
| download | Project-Tick-df0519bea5390ac8f3d9a0e168e2f799bd068985.tar.gz Project-Tick-df0519bea5390ac8f3d9a0e168e2f799bd068985.zip | |
feat: enhance error handling in ozlibstream and improve JSON escaping in json_formatter; add make_numeric_tag for cleaner tag creation
Signed-off-by: YongDo-Hyun <froster12@naver.com>
Diffstat (limited to 'src/io/ozlibstream.cpp')
| -rw-r--r-- | src/io/ozlibstream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/ozlibstream.cpp b/src/io/ozlibstream.cpp index b936219787..5f479f83f8 100644 --- a/src/io/ozlibstream.cpp +++ b/src/io/ozlibstream.cpp @@ -95,6 +95,7 @@ int deflate_streambuf::sync() void ozlibstream::close() { + std::ios_base::iostate old_ex = exceptions(); try { buf.close(); @@ -105,7 +106,6 @@ void ozlibstream::close() // `setstate` to throw an `ios_base::failure` which would replace // the original exception. Temporarily disable exceptions on this // stream, set the `badbit`, then restore the exception mask. - std::ios_base::iostate old_ex = exceptions(); try { exceptions(std::ios_base::goodbit); setstate(std::ios_base::badbit); |
