diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-07 16:47:37 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-07 16:47:37 +0100 |
commit | 7d210e952de2ccfd2ac758dbacd7b752da8769e9 (patch) | |
tree | 0e970def70c96a3c19d5f0d37cd17d678f70c9a0 /TAO/tao/LF_Event.cpp | |
parent | 884dcea8b196f72cb995de9f46d61a6ee6521222 (diff) | |
download | ATCD-7d210e952de2ccfd2ac758dbacd7b752da8769e9.tar.gz |
Removed redundant void, use nullptr/override in the TAO core
Diffstat (limited to 'TAO/tao/LF_Event.cpp')
-rw-r--r-- | TAO/tao/LF_Event.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TAO/tao/LF_Event.cpp b/TAO/tao/LF_Event.cpp index 16139aeb985..d8cf240ce1c 100644 --- a/TAO/tao/LF_Event.cpp +++ b/TAO/tao/LF_Event.cpp @@ -10,13 +10,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_LF_Event::TAO_LF_Event (void) +TAO_LF_Event::TAO_LF_Event () : state_ (TAO_LF_Event::LFS_IDLE) - , follower_ (0) + , follower_ (nullptr) { } -TAO_LF_Event::~TAO_LF_Event (void) +TAO_LF_Event::~TAO_LF_Event () { } @@ -30,7 +30,7 @@ TAO_LF_Event::state_changed (LFS_STATE new_state, TAO_Leader_Follower &lf) this->state_changed_i (new_state); /// Sort of double-checked optimization.. - if (this->follower_ != 0) + if (this->follower_ != nullptr) this->follower_->signal (); } } |