summaryrefslogtreecommitdiff
path: root/Userland/Services/ImageDecoder
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/ImageDecoder
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/ImageDecoder')
-rw-r--r--Userland/Services/ImageDecoder/ConnectionFromClient.cpp4
-rw-r--r--Userland/Services/ImageDecoder/ConnectionFromClient.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Services/ImageDecoder/ConnectionFromClient.cpp b/Userland/Services/ImageDecoder/ConnectionFromClient.cpp
index 6911b3c0a7..e95f9ae066 100644
--- a/Userland/Services/ImageDecoder/ConnectionFromClient.cpp
+++ b/Userland/Services/ImageDecoder/ConnectionFromClient.cpp
@@ -17,10 +17,6 @@ ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSock
{
}
-ConnectionFromClient::~ConnectionFromClient()
-{
-}
-
void ConnectionFromClient::die()
{
Core::EventLoop::current().quit(0);
diff --git a/Userland/Services/ImageDecoder/ConnectionFromClient.h b/Userland/Services/ImageDecoder/ConnectionFromClient.h
index 7365dfe702..1deaca8c11 100644
--- a/Userland/Services/ImageDecoder/ConnectionFromClient.h
+++ b/Userland/Services/ImageDecoder/ConnectionFromClient.h
@@ -20,7 +20,7 @@ class ConnectionFromClient final
C_OBJECT(ConnectionFromClient);
public:
- ~ConnectionFromClient() override;
+ ~ConnectionFromClient() override = default;
virtual void die() override;