summaryrefslogtreecommitdiff
path: root/src/PeerAddrEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/PeerAddrEntry.cc
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/PeerAddrEntry.cc')
-rw-r--r--src/PeerAddrEntry.cc23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/PeerAddrEntry.cc b/src/PeerAddrEntry.cc
index ee68c7c8..29493bd9 100644
--- a/src/PeerAddrEntry.cc
+++ b/src/PeerAddrEntry.cc
@@ -37,22 +37,22 @@
namespace aria2 {
-PeerAddrEntry::PeerAddrEntry
-(const std::string& ipaddr, uint16_t port, Timer updated)
- : ipaddr_(ipaddr), port_(port), lastUpdated_(updated)
-{}
+PeerAddrEntry::PeerAddrEntry(const std::string& ipaddr, uint16_t port,
+ Timer updated)
+ : ipaddr_(ipaddr), port_(port), lastUpdated_(updated)
+{
+}
PeerAddrEntry::PeerAddrEntry(const PeerAddrEntry& c)
- : ipaddr_(c.ipaddr_),
- port_(c.port_),
- lastUpdated_(c.lastUpdated_)
-{}
+ : ipaddr_(c.ipaddr_), port_(c.port_), lastUpdated_(c.lastUpdated_)
+{
+}
PeerAddrEntry::~PeerAddrEntry() {}
PeerAddrEntry& PeerAddrEntry::operator=(const PeerAddrEntry& c)
{
- if(this != &c) {
+ if (this != &c) {
ipaddr_ = c.ipaddr_;
port_ = c.port_;
lastUpdated_ = c.lastUpdated_;
@@ -60,10 +60,7 @@ PeerAddrEntry& PeerAddrEntry::operator=(const PeerAddrEntry& c)
return *this;
}
-void PeerAddrEntry::notifyUpdate()
-{
- lastUpdated_ = global::wallclock();
-}
+void PeerAddrEntry::notifyUpdate() { lastUpdated_ = global::wallclock(); }
bool PeerAddrEntry::operator==(const PeerAddrEntry& entry) const
{