diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-01-02 15:47:43 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-01-02 15:47:43 +0100 |
commit | 6cff83528f14fd156db8608dd342e73721351d13 (patch) | |
tree | 85d2e5668111a574324858da5aa2d09b7ba78195 /TAO/tao/LF_Event.h | |
parent | c33a4044b374435b16732f4bb34092859cc952d0 (diff) | |
download | ATCD-6cff83528f14fd156db8608dd342e73721351d13.tar.gz |
Make several check methods to return a bool instead of int, much easier to understand the code path and less error phrone
* 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:
Diffstat (limited to 'TAO/tao/LF_Event.h')
-rw-r--r-- | TAO/tao/LF_Event.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/LF_Event.h b/TAO/tao/LF_Event.h index a0d82eb7053..ef6173f53f7 100644 --- a/TAO/tao/LF_Event.h +++ b/TAO/tao/LF_Event.h @@ -106,13 +106,13 @@ public: /** * Virtual methods for this class hierarchy.. */ - /// Return 1 if the condition was satisfied successfully, 0 if it + /// Return true if the condition was satisfied successfully, false if it /// has not - virtual int successful (void) const = 0 ; + virtual bool successful (void) const = 0 ; - /// Return 1 if an error was detected while waiting for the + /// Return true if an error was detected while waiting for the /// event - virtual int error_detected (void) const = 0; + virtual bool error_detected (void) const = 0; /// Check if we should keep waiting. bool keep_waiting (void); @@ -129,7 +129,7 @@ protected: virtual void state_changed_i (int new_state) = 0; /// Check whether we have reached the final state.. - virtual int is_state_final (void) = 0; + virtual bool is_state_final (void) const = 0; private: |