diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-09-15 23:37:49 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-09-15 23:37:49 +0200 |
| commit | 93a4f406d0b827026d26703c4623b1b846f65ca4 (patch) | |
| tree | 0d3a2b287696223de8f8b919bb2f8cf87b4a960f /include | |
| parent | ef10a4f34a3f10bc1fc7ee0b7b1be6f37d286741 (diff) | |
| download | Project-Tick-93a4f406d0b827026d26703c4623b1b846f65ca4.tar.gz Project-Tick-93a4f406d0b827026d26703c4623b1b846f65ca4.zip | |
Fix base constructor calls of i/ostream
Add missing noexcept
Diffstat (limited to 'include')
| -rw-r--r-- | include/io/izlibstream.h | 6 | ||||
| -rw-r--r-- | include/io/ozlibstream.h | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/include/io/izlibstream.h b/include/io/izlibstream.h index 4e9dc9c1ee..6d58d56b86 100644 --- a/include/io/izlibstream.h +++ b/include/io/izlibstream.h @@ -76,10 +76,8 @@ public: * @param bufsize the size of the internal buffers */ explicit izlibstream(std::istream& input, size_t bufsize = 32768): - buf(input, bufsize) - { - init(&buf); - } + std::istream(&buf), buf(input, bufsize) + {} ///@return the wrapped istream std::istream& get_istr() const { return buf.get_istr(); } diff --git a/include/io/ozlibstream.h b/include/io/ozlibstream.h index 6ebd3c0dd0..954bcc182d 100644 --- a/include/io/ozlibstream.h +++ b/include/io/ozlibstream.h @@ -85,10 +85,8 @@ public: * Refer to the zlib documentation of deflateInit2 for a detailed explanation of the arguments. */ explicit ozlibstream(std::ostream& output, int level = -1, int window_bits = 15, int mem_level = 8, int strategy = Z_DEFAULT_STRATEGY): - buf(output, level, window_bits, mem_level, strategy) - { - init(&buf); - } + std::ostream(&buf), buf(output, level, window_bits, mem_level, strategy) + {} ///@return the wrapped ostream std::ostream& get_ostr() const { return buf.get_ostr(); } |
