diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-01-03 16:40:38 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-01-03 16:40:38 +0100 |
commit | 099e520ce5a608fe00cb9d921854b2d87966cde3 (patch) | |
tree | 682b951ce5325e7d44da1ea6637d08f869126390 /TAO/tao/LF_CH_Event.cpp | |
parent | 15327947b0a014aa99909dc33e4cfc9255473542 (diff) | |
download | ATCD-099e520ce5a608fe00cb9d921854b2d87966cde3.tar.gz |
Make the leader follower state a real enum instead of using it as int, that way a compiler can detect when we assign a non-existent value
* TAO/tao/LF_CH_Event.cpp:
* TAO/tao/LF_CH_Event.h:
* TAO/tao/LF_Event.cpp:
* TAO/tao/LF_Event.h:
* TAO/tao/LF_Event.inl:
* TAO/tao/LF_Invocation_Event.cpp:
* TAO/tao/LF_Invocation_Event.h:
* TAO/tao/LF_Multi_Event.cpp:
* TAO/tao/LF_Multi_Event.h:
* TAO/tests/Bug_3531b_Regression/server.cpp:
Diffstat (limited to 'TAO/tao/LF_CH_Event.cpp')
-rw-r--r-- | TAO/tao/LF_CH_Event.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/tao/LF_CH_Event.cpp b/TAO/tao/LF_CH_Event.cpp index 735041be0e4..ce68e95f94e 100644 --- a/TAO/tao/LF_CH_Event.cpp +++ b/TAO/tao/LF_CH_Event.cpp @@ -30,7 +30,7 @@ TAO_LF_CH_Event::unbind (TAO_LF_Follower *follower) } void -TAO_LF_CH_Event::state_changed_i (int new_state) +TAO_LF_CH_Event::state_changed_i (LFS_STATE new_state) { if (this->state_ != new_state) { @@ -64,7 +64,7 @@ TAO_LF_CH_Event::state_changed_i (int new_state) } void -TAO_LF_CH_Event::validate_state_change (int new_state) +TAO_LF_CH_Event::validate_state_change (LFS_STATE new_state) { if (this->state_ == TAO_LF_Event::LFS_IDLE) { @@ -128,7 +128,7 @@ TAO_LF_CH_Event::error_detected_i (void) const } void -TAO_LF_CH_Event::set_state (int new_state) +TAO_LF_CH_Event::set_state (LFS_STATE new_state) { // @@ NOTE: Is this still required? if (!this->is_state_final () |