summaryrefslogtreecommitdiff
path: root/src/PeerAddrEntry.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2016-07-31 02:18:43 +0200
committerNils Maier <maierman@web.de>2016-08-29 16:52:20 +0200
commit366e2e8f795e82e2c8472bcf1cd0a892550789a9 (patch)
treee00f9d25494c412b04234cda11caf79bfc73fcbf /src/PeerAddrEntry.cc
parent08f4b5e4f41b343753d440f32ccc213c40f3726b (diff)
Use default where possible
Diffstat (limited to 'src/PeerAddrEntry.cc')
-rw-r--r--src/PeerAddrEntry.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/PeerAddrEntry.cc b/src/PeerAddrEntry.cc
index 29493bd9..5591879e 100644
--- a/src/PeerAddrEntry.cc
+++ b/src/PeerAddrEntry.cc
@@ -44,11 +44,9 @@ PeerAddrEntry::PeerAddrEntry(const std::string& ipaddr, uint16_t port,
}
PeerAddrEntry::PeerAddrEntry(const PeerAddrEntry& c)
- : ipaddr_(c.ipaddr_), port_(c.port_), lastUpdated_(c.lastUpdated_)
-{
-}
+ = default;
-PeerAddrEntry::~PeerAddrEntry() {}
+PeerAddrEntry::~PeerAddrEntry() = default;
PeerAddrEntry& PeerAddrEntry::operator=(const PeerAddrEntry& c)
{