diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
| commit | 4fa6821e0645ff61a9380cd090abff472205c630 (patch) | |
| tree | bd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.util/capture_stream.ccm | |
| parent | e5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff) | |
| download | nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.gz nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.bz2 | |
add clang-tidy support
Diffstat (limited to 'nihil.util/capture_stream.ccm')
| -rw-r--r-- | nihil.util/capture_stream.ccm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nihil.util/capture_stream.ccm b/nihil.util/capture_stream.ccm index 3333505..7ec39a9 100644 --- a/nihil.util/capture_stream.ccm +++ b/nihil.util/capture_stream.ccm @@ -24,10 +24,11 @@ struct capture_stream { m_stream->rdbuf(m_buffer.rdbuf()); } - ~capture_stream() { + ~capture_stream() + { if (m_old_streambuf == nullptr) return; - release(); + m_stream->rdbuf(m_old_streambuf); } /* |
