summaryrefslogtreecommitdiff
path: root/src/BtLeecherStateChoke.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2021-10-30 19:04:29 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2021-10-30 19:04:29 +0900
commitc546fa492c752d0594312ee1a2ac8bb4763c40f2 (patch)
tree263fa6dad1c18fd81ce3a0b9bf8ced1b915d8cfe /src/BtLeecherStateChoke.cc
parent177939d6aca9b2c77d8ce526aa22f220de3fefcc (diff)
clang-format-12
Diffstat (limited to 'src/BtLeecherStateChoke.cc')
-rw-r--r--src/BtLeecherStateChoke.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BtLeecherStateChoke.cc b/src/BtLeecherStateChoke.cc
index 7dd2126e..a2a159ac 100644
--- a/src/BtLeecherStateChoke.cc
+++ b/src/BtLeecherStateChoke.cc
@@ -72,8 +72,8 @@ void BtLeecherStateChoke::PeerEntry::swap(PeerEntry& c)
swap(regularUnchoker_, c.regularUnchoker_);
}
-BtLeecherStateChoke::PeerEntry& BtLeecherStateChoke::PeerEntry::
-operator=(const PeerEntry& c)
+BtLeecherStateChoke::PeerEntry&
+BtLeecherStateChoke::PeerEntry::operator=(const PeerEntry& c)
{
if (this != &c) {
peer_ = c.peer_;
@@ -130,8 +130,8 @@ void swap(BtLeecherStateChoke::PeerEntry& a, BtLeecherStateChoke::PeerEntry& b)
a.swap(b);
}
-bool BtLeecherStateChoke::PeerFilter::
-operator()(const PeerEntry& peerEntry) const
+bool BtLeecherStateChoke::PeerFilter::operator()(
+ const PeerEntry& peerEntry) const
{
return peerEntry.getPeer()->amChoking() == amChoking_ &&
peerEntry.getPeer()->peerInterested() == peerInterested_;