diff options
author | Shauren <shauren.trinity@gmail.com> | 2019-08-24 15:53:12 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2019-08-24 17:13:17 +0200 |
commit | 11ebe36e57cd0ad299ce12bcaca4d98c73ac49d4 (patch) | |
tree | 1857bb83b854b084f13aa64c89f90ac36e3c3474 | |
parent | 548d79bb06cfba3517347070dfe606748dda55ab (diff) |
Core/ByteBuffer: Replace throw() with noexcept
-rw-r--r-- | src/server/shared/Packets/ByteBuffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index 8daf86c8489..5ab4e854629 100644 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -31,12 +31,12 @@ class MessageBuffer; class TC_SHARED_API ByteBufferException : public std::exception { public: - ~ByteBufferException() throw() { } + ~ByteBufferException() noexcept { } - char const* what() const throw() override { return msg_.c_str(); } + char const* what() const noexcept override { return msg_.c_str(); } protected: - std::string & message() throw() { return msg_; } + std::string& message() { return msg_; } private: std::string msg_; @@ -47,7 +47,7 @@ class TC_SHARED_API ByteBufferPositionException : public ByteBufferException public: ByteBufferPositionException(size_t pos, size_t size, size_t valueSize); - ~ByteBufferPositionException() throw() { } + ~ByteBufferPositionException() noexcept { } }; class TC_SHARED_API ByteBuffer @@ -98,7 +98,7 @@ class TC_SHARED_API ByteBuffer return *this; } - ByteBuffer& operator=(ByteBuffer&& right) + ByteBuffer& operator=(ByteBuffer&& right) noexcept { if (this != &right) { |