summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-03-23 20:58:03 -0600
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-24 20:09:26 -0700
commit0b7baa7e5a556f82988ad4f6b39fed8cd38ae9fd (patch)
tree85342dfcc6110883cf5865abe3f4bdae0f308173 /Userland/Services/WebContent
parent5550905c00c097b92eb5832fc92b88a00018620b (diff)
downloadserenity-0b7baa7e5a556f82988ad4f6b39fed8cd38ae9fd.zip
Services: Use default constructors/destructors
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."
Diffstat (limited to 'Userland/Services/WebContent')
-rw-r--r--Userland/Services/WebContent/ConnectionFromClient.cpp4
-rw-r--r--Userland/Services/WebContent/ConnectionFromClient.h2
-rw-r--r--Userland/Services/WebContent/ConsoleGlobalObject.cpp4
-rw-r--r--Userland/Services/WebContent/ConsoleGlobalObject.h2
-rw-r--r--Userland/Services/WebContent/PageHost.cpp4
-rw-r--r--Userland/Services/WebContent/PageHost.h2
6 files changed, 3 insertions, 15 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp
index 0f4fc133bc..b7605e33c0 100644
--- a/Userland/Services/WebContent/ConnectionFromClient.cpp
+++ b/Userland/Services/WebContent/ConnectionFromClient.cpp
@@ -41,10 +41,6 @@ ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSock
m_paint_flush_timer = Core::Timer::create_single_shot(0, [this] { flush_pending_paint_requests(); });
}
-ConnectionFromClient::~ConnectionFromClient()
-{
-}
-
void ConnectionFromClient::die()
{
Core::EventLoop::current().quit(0);
diff --git a/Userland/Services/WebContent/ConnectionFromClient.h b/Userland/Services/WebContent/ConnectionFromClient.h
index 18a3a9ab8a..abcfa96c18 100644
--- a/Userland/Services/WebContent/ConnectionFromClient.h
+++ b/Userland/Services/WebContent/ConnectionFromClient.h
@@ -25,7 +25,7 @@ class ConnectionFromClient final
C_OBJECT(ConnectionFromClient);
public:
- ~ConnectionFromClient() override;
+ ~ConnectionFromClient() override = default;
virtual void die() override;
diff --git a/Userland/Services/WebContent/ConsoleGlobalObject.cpp b/Userland/Services/WebContent/ConsoleGlobalObject.cpp
index f371a780fc..411d5e56e0 100644
--- a/Userland/Services/WebContent/ConsoleGlobalObject.cpp
+++ b/Userland/Services/WebContent/ConsoleGlobalObject.cpp
@@ -19,10 +19,6 @@ ConsoleGlobalObject::ConsoleGlobalObject(Web::Bindings::WindowObject& parent_obj
{
}
-ConsoleGlobalObject::~ConsoleGlobalObject()
-{
-}
-
void ConsoleGlobalObject::initialize_global_object()
{
Base::initialize_global_object();
diff --git a/Userland/Services/WebContent/ConsoleGlobalObject.h b/Userland/Services/WebContent/ConsoleGlobalObject.h
index 57dd008c43..ca2ef828b6 100644
--- a/Userland/Services/WebContent/ConsoleGlobalObject.h
+++ b/Userland/Services/WebContent/ConsoleGlobalObject.h
@@ -21,7 +21,7 @@ class ConsoleGlobalObject final : public JS::GlobalObject {
public:
ConsoleGlobalObject(Web::Bindings::WindowObject&);
- virtual ~ConsoleGlobalObject() override;
+ virtual ~ConsoleGlobalObject() override = default;
virtual JS::ThrowCompletionOr<Object*> internal_get_prototype_of() const override;
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(Object* prototype) override;
diff --git a/Userland/Services/WebContent/PageHost.cpp b/Userland/Services/WebContent/PageHost.cpp
index b5d22f0418..5a23732afc 100644
--- a/Userland/Services/WebContent/PageHost.cpp
+++ b/Userland/Services/WebContent/PageHost.cpp
@@ -28,10 +28,6 @@ PageHost::PageHost(ConnectionFromClient& client)
});
}
-PageHost::~PageHost()
-{
-}
-
void PageHost::set_has_focus(bool has_focus)
{
m_has_focus = has_focus;
diff --git a/Userland/Services/WebContent/PageHost.h b/Userland/Services/WebContent/PageHost.h
index abaef859d3..4aeded7d50 100644
--- a/Userland/Services/WebContent/PageHost.h
+++ b/Userland/Services/WebContent/PageHost.h
@@ -19,7 +19,7 @@ class PageHost final : public Web::PageClient {
public:
static NonnullOwnPtr<PageHost> create(ConnectionFromClient& client) { return adopt_own(*new PageHost(client)); }
- virtual ~PageHost();
+ virtual ~PageHost() = default;
Web::Page& page() { return *m_page; }
const Web::Page& page() const { return *m_page; }