aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2019-08-24 15:53:12 +0200
committerShauren <shauren.trinity@gmail.com>2019-08-24 17:13:17 +0200
commit11ebe36e57cd0ad299ce12bcaca4d98c73ac49d4 (patch)
tree1857bb83b854b084f13aa64c89f90ac36e3c3474
parent548d79bb06cfba3517347070dfe606748dda55ab (diff)
Core/ByteBuffer: Replace throw() with noexcept
-rw-r--r--src/server/shared/Packets/ByteBuffer.h10
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)
{