clang-tidy: modernize-use-equals-default

This commit is contained in:
Peter Johnson
2020-12-28 00:37:33 -08:00
parent b124f9101b
commit 67e03e625d
30 changed files with 51 additions and 51 deletions

View File

@@ -92,7 +92,7 @@ WebSocket::WebSocket(uv::Stream& stream, bool server, const private_init&)
[this]() { Terminate(1006, "remote end closed connection"); });
}
WebSocket::~WebSocket() {}
WebSocket::~WebSocket() = default;
std::shared_ptr<WebSocket> WebSocket::CreateClient(
uv::Stream& stream, const Twine& uri, const Twine& host,

View File

@@ -15,7 +15,7 @@ namespace uv {
*/
class Error {
public:
Error() {}
Error() = default;
explicit Error(int err) : m_err(err) {}
/**