summaryrefslogtreecommitdiff
path: root/src/PeerAddrEntry.h
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.h
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/PeerAddrEntry.h')
-rw-r--r--src/PeerAddrEntry.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/PeerAddrEntry.h b/src/PeerAddrEntry.h
index 1b643d83..9bcf7e70 100644
--- a/src/PeerAddrEntry.h
+++ b/src/PeerAddrEntry.h
@@ -50,28 +50,20 @@ private:
uint16_t port_;
Timer lastUpdated_;
+
public:
- PeerAddrEntry
- (const std::string& ipaddr, uint16_t port, Timer updated = Timer());
+ PeerAddrEntry(const std::string& ipaddr, uint16_t port,
+ Timer updated = Timer());
PeerAddrEntry(const PeerAddrEntry& c);
~PeerAddrEntry();
PeerAddrEntry& operator=(const PeerAddrEntry& c);
- const std::string& getIPAddress() const
- {
- return ipaddr_;
- }
+ const std::string& getIPAddress() const { return ipaddr_; }
- uint16_t getPort() const
- {
- return port_;
- }
+ uint16_t getPort() const { return port_; }
- const Timer& getLastUpdated() const
- {
- return lastUpdated_;
- }
+ const Timer& getLastUpdated() const { return lastUpdated_; }
void notifyUpdate();