diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/PeerChokeCommand.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/PeerChokeCommand.cc')
| -rw-r--r-- | src/PeerChokeCommand.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/PeerChokeCommand.cc b/src/PeerChokeCommand.cc index 8c886a9f..7d920bcc 100644 --- a/src/PeerChokeCommand.cc +++ b/src/PeerChokeCommand.cc @@ -39,32 +39,32 @@ namespace aria2 { -PeerChokeCommand::PeerChokeCommand(cuid_t cuid, - DownloadEngine* e): - Command(cuid), - e_(e) {} +PeerChokeCommand::PeerChokeCommand(cuid_t cuid, DownloadEngine* e) + : Command(cuid), e_(e) +{ +} PeerChokeCommand::~PeerChokeCommand() {} -bool PeerChokeCommand::execute() { - if(btRuntime_->isHalt()) { +bool PeerChokeCommand::execute() +{ + if (btRuntime_->isHalt()) { return true; } - if(peerStorage_->chokeRoundIntervalElapsed()) { + if (peerStorage_->chokeRoundIntervalElapsed()) { peerStorage_->executeChoke(); } e_->addCommand(std::unique_ptr<Command>(this)); return false; } -void PeerChokeCommand::setBtRuntime -(const std::shared_ptr<BtRuntime>& btRuntime) +void PeerChokeCommand::setBtRuntime(const std::shared_ptr<BtRuntime>& btRuntime) { btRuntime_ = btRuntime; } -void PeerChokeCommand::setPeerStorage -(const std::shared_ptr<PeerStorage>& peerStorage) +void PeerChokeCommand::setPeerStorage( + const std::shared_ptr<PeerStorage>& peerStorage) { peerStorage_ = peerStorage; } |
