summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/SocketAddress.h
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-02-26 09:09:45 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-10 18:04:26 -0800
commitea58b8d9275b16e50d69b585519fbb4f1a850415 (patch)
tree629147d3d309f193923dee1793b54348d86404cd /Userland/Libraries/LibCore/SocketAddress.h
parentc6dcb12b000a04a6e2cf840b71fc051078c96256 (diff)
downloadserenity-ea58b8d9275b16e50d69b585519fbb4f1a850415.zip
Libraries: Use default constructors/destructors in LibCore
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/Libraries/LibCore/SocketAddress.h')
-rw-r--r--Userland/Libraries/LibCore/SocketAddress.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/SocketAddress.h b/Userland/Libraries/LibCore/SocketAddress.h
index 417d329bad..b575ff339d 100644
--- a/Userland/Libraries/LibCore/SocketAddress.h
+++ b/Userland/Libraries/LibCore/SocketAddress.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
+ * Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -23,7 +24,7 @@ public:
Local
};
- SocketAddress() { }
+ SocketAddress() = default;
SocketAddress(const IPv4Address& address)
: m_type(Type::IPv4)
, m_ipv4_address(address)