1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

Libraries: Use default constructors/destructors in LibWebSocket

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
This commit is contained in:
Lenny Maiorani 2022-03-04 14:08:30 -07:00 committed by Andreas Kling
parent 8b334248e4
commit 1a59cffb00
4 changed files with 6 additions and 10 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, Dex <dexes.ttp@gmail.com>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -25,7 +26,7 @@ class WebSocket final : public Core::Object {
C_OBJECT(WebSocket)
public:
static NonnullRefPtr<WebSocket> create(ConnectionInfo);
virtual ~WebSocket() override;
virtual ~WebSocket() override = default;
URL const& url() const { return m_connection.url(); }