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/TimeBasedCommand.h | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/TimeBasedCommand.h')
| -rw-r--r-- | src/TimeBasedCommand.h | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/TimeBasedCommand.h b/src/TimeBasedCommand.h index e5082cad..d8d17b34 100644 --- a/src/TimeBasedCommand.h +++ b/src/TimeBasedCommand.h @@ -42,8 +42,7 @@ namespace aria2 { class DownloadEngine; -class TimeBasedCommand : public Command -{ +class TimeBasedCommand : public Command { private: DownloadEngine* e_; @@ -63,25 +62,17 @@ private: bool routineCommand_; protected: - DownloadEngine* getDownloadEngine() const - { - return e_; - } - - void enableExit() - { - exit_ = true; - } - - const std::chrono::seconds& getInterval() const - { - return interval_; - } + DownloadEngine* getDownloadEngine() const { return e_; } + + void enableExit() { exit_ = true; } + + const std::chrono::seconds& getInterval() const { return interval_; } + public: /** * preProcess() is called each time when excute() is called. */ - virtual void preProcess() {}; + virtual void preProcess(){}; /** * process() is called only when excute() is called and specified time has @@ -92,7 +83,7 @@ public: /** * postProcess() is called each time when excute() is called. */ - virtual void postProcess() {}; + virtual void postProcess(){}; public: TimeBasedCommand(cuid_t cuid, DownloadEngine* e, |
