diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-02-26 09:09:45 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-03-10 18:04:26 -0800 |
commit | ea58b8d9275b16e50d69b585519fbb4f1a850415 (patch) | |
tree | 629147d3d309f193923dee1793b54348d86404cd /Userland/Libraries/LibCore/SocketAddress.h | |
parent | c6dcb12b000a04a6e2cf840b71fc051078c96256 (diff) | |
download | serenity-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.h | 3 |
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) |