diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-21 13:51:56 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-21 13:51:56 +0000 |
| commit | ca4940622c05e50a50f77c621ade914029663446 (patch) | |
| tree | 2715d87c6b4faa669ae317f6f95d9694630cd4a0 /src/TimeBasedCommand.cc | |
| parent | ae957baa98d4f97ea2437596db5073f9c33d22ae (diff) | |
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks
like var_ instead of _var.
Diffstat (limited to 'src/TimeBasedCommand.cc')
| -rw-r--r-- | src/TimeBasedCommand.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/TimeBasedCommand.cc b/src/TimeBasedCommand.cc index 929f4257..b94fe60c 100644 --- a/src/TimeBasedCommand.cc +++ b/src/TimeBasedCommand.cc @@ -46,32 +46,32 @@ namespace aria2 { TimeBasedCommand::TimeBasedCommand(cuid_t cuid, DownloadEngine* e, time_t interval, bool routineCommand): - Command(cuid), _e(e),_exit(false), _interval(interval), - _routineCommand(routineCommand), _checkPoint(global::wallclock) {} + Command(cuid), e_(e),exit_(false), interval_(interval), + routineCommand_(routineCommand), checkPoint_(global::wallclock) {} TimeBasedCommand::~TimeBasedCommand() {} bool TimeBasedCommand::execute() { preProcess(); - if(_exit) { + if(exit_) { return true; } - if(_checkPoint.difference(global::wallclock) >= _interval) { - _checkPoint = global::wallclock; + if(checkPoint_.difference(global::wallclock) >= interval_) { + checkPoint_ = global::wallclock; process(); - if(_exit) { + if(exit_) { return true; } } postProcess(); - if(_exit) { + if(exit_) { return true; } - if(_routineCommand) { - _e->addRoutineCommand(this); + if(routineCommand_) { + e_->addRoutineCommand(this); } else { - _e->addCommand(this); + e_->addCommand(this); } return false; } |
