input/TextInputStream: add "noexcept"

This commit is contained in:
Max Kellermann 2018-01-20 19:35:09 +01:00
parent f90f17227b
commit 720df085e5
2 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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);
}