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/Command.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/Command.cc')
| -rw-r--r-- | src/Command.cc | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/Command.cc b/src/Command.cc index 52d3c192..8758f334 100644 --- a/src/Command.cc +++ b/src/Command.cc @@ -38,55 +38,55 @@ namespace aria2 { -Command::Command(cuid_t cuid):_status(STATUS_INACTIVE), - _cuid(cuid), - _logger(LogFactory::getInstance()), - _readEvent(false), - _writeEvent(false), - _errorEvent(false), - _hupEvent(false) {} +Command::Command(cuid_t cuid):status_(STATUS_INACTIVE), + cuid_(cuid), + logger_(LogFactory::getInstance()), + readEvent_(false), + writeEvent_(false), + errorEvent_(false), + hupEvent_(false) {} void Command::transitStatus() { - switch(_status) { + switch(status_) { case STATUS_REALTIME: break; default: - _status = STATUS_INACTIVE; + status_ = STATUS_INACTIVE; } } void Command::setStatus(STATUS status) { - _status = status; + status_ = status; } void Command::readEventReceived() { - _readEvent = true; + readEvent_ = true; } void Command::writeEventReceived() { - _writeEvent = true; + writeEvent_ = true; } void Command::errorEventReceived() { - _errorEvent = true; + errorEvent_ = true; } void Command::hupEventReceived() { - _hupEvent = true; + hupEvent_ = true; } void Command::clearIOEvents() { - _readEvent = false; - _writeEvent = false; - _errorEvent = false; - _hupEvent = false; + readEvent_ = false; + writeEvent_ = false; + errorEvent_ = false; + hupEvent_ = false; } } // namespace aria2 |
