input/TextInputStream: add "noexcept"
This commit is contained in:
parent
f90f17227b
commit
720df085e5
@ -27,10 +27,10 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
TextInputStream::TextInputStream(InputStreamPtr &&_is)
|
TextInputStream::TextInputStream(InputStreamPtr &&_is) noexcept
|
||||||
:is(std::move(_is)) {}
|
:is(std::move(_is)) {}
|
||||||
|
|
||||||
TextInputStream::~TextInputStream() {}
|
TextInputStream::~TextInputStream() noexcept {}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
TextInputStream::ReadLine()
|
TextInputStream::ReadLine()
|
||||||
|
@ -34,13 +34,13 @@ public:
|
|||||||
*
|
*
|
||||||
* @param _is an open #InputStream object
|
* @param _is an open #InputStream object
|
||||||
*/
|
*/
|
||||||
explicit TextInputStream(InputStreamPtr &&_is);
|
explicit TextInputStream(InputStreamPtr &&_is) noexcept;
|
||||||
~TextInputStream();
|
~TextInputStream() noexcept;
|
||||||
|
|
||||||
TextInputStream(const TextInputStream &) = delete;
|
TextInputStream(const TextInputStream &) = delete;
|
||||||
TextInputStream& operator=(const TextInputStream &) = delete;
|
TextInputStream& operator=(const TextInputStream &) = delete;
|
||||||
|
|
||||||
InputStreamPtr &&StealInputStream() {
|
InputStreamPtr &&StealInputStream() noexcept {
|
||||||
return std::move(is);
|
return std::move(is);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user