Commit 720df085 authored by Max Kellermann's avatar Max Kellermann

input/TextInputStream: add "noexcept"

parent f90f1722
......@@ -27,10 +27,10 @@
#include <assert.h>
TextInputStream::TextInputStream(InputStreamPtr &&_is)
TextInputStream::TextInputStream(InputStreamPtr &&_is) noexcept
:is(std::move(_is)) {}
TextInputStream::~TextInputStream() {}
TextInputStream::~TextInputStream() noexcept {}
char *
TextInputStream::ReadLine()
......
......@@ -34,13 +34,13 @@ public:
*
* @param _is an open #InputStream object
*/
explicit TextInputStream(InputStreamPtr &&_is);
~TextInputStream();
explicit TextInputStream(InputStreamPtr &&_is) noexcept;
~TextInputStream() noexcept;
TextInputStream(const TextInputStream &) = delete;
TextInputStream& operator=(const TextInputStream &) = delete;
InputStreamPtr &&StealInputStream() {
InputStreamPtr &&StealInputStream() noexcept {
return std::move(is);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment