refactor(Core): apply clang-tidy modernize-use-noexcept (#3837)

This commit is contained in:
Francesco Borzì
2020-12-06 22:44:38 +01:00
committed by GitHub
parent a7faf4a16f
commit 6558fca4a1
+5 -6
View File
@@ -22,12 +22,12 @@
class ByteBufferException : public std::exception class ByteBufferException : public std::exception
{ {
public: public:
~ByteBufferException() throw() override { } ~ByteBufferException() noexcept override { }
[[nodiscard]] char const* what() const throw() override { return msg_.c_str(); } [[nodiscard]] char const* what() const noexcept override { return msg_.c_str(); }
protected: protected:
std::string& message() throw() { return msg_; } std::string& message() noexcept { return msg_; }
private: private:
std::string msg_; std::string msg_;
@@ -37,8 +37,7 @@ class ByteBufferPositionException : public ByteBufferException
{ {
public: public:
ByteBufferPositionException(bool add, size_t pos, size_t size, size_t valueSize); ByteBufferPositionException(bool add, size_t pos, size_t size, size_t valueSize);
~ByteBufferPositionException() noexcept override { }
~ByteBufferPositionException() throw() override { }
}; };
class ByteBufferSourceException : public ByteBufferException class ByteBufferSourceException : public ByteBufferException
@@ -46,7 +45,7 @@ class ByteBufferSourceException : public ByteBufferException
public: public:
ByteBufferSourceException(size_t pos, size_t size, size_t valueSize); ByteBufferSourceException(size_t pos, size_t size, size_t valueSize);
~ByteBufferSourceException() throw() override { } ~ByteBufferSourceException() noexcept override { }
}; };
class ByteBuffer class ByteBuffer