Core/ByteBuffer: Replace throw() with noexcept

This commit is contained in:
Shauren
2019-08-24 15:53:12 +02:00
parent 548d79bb06
commit 11ebe36e57

View File

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