diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2018-12-03 16:32:52 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2018-12-03 16:32:52 +0100 |
commit | 88084b099ceba7bea4246f990b6e421833d7c21b (patch) | |
tree | 89b80b19adc49cb700b9dc42846b6abaae930037 /TAO/orbsvcs/ImplRepo_Service | |
parent | a38c8bee8324936f8f836fa2210c7e7a41453d41 (diff) | |
download | ATCD-88084b099ceba7bea4246f990b6e421833d7c21b.tar.gz |
Const enhancements
* TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp:
* TAO/orbsvcs/ImplRepo_Service/LiveCheck.h:
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service')
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp | 6 | ||||
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/LiveCheck.h | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp index 410bd9ce27b..0e5c3f5e9df 100644 --- a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp @@ -102,7 +102,7 @@ LiveEntry::set_reping_limit (int max) } bool -LiveEntry::reping_available (void) +LiveEntry::reping_available (void) const { return this->repings_ < this->max_retry_; } @@ -331,13 +331,13 @@ LiveEntry::set_pid (int pid) } int -LiveEntry::pid (void) +LiveEntry::pid (void) const { return this->pid_; } bool -LiveEntry::has_pid (int pid) +LiveEntry::has_pid (int pid) const { return this->pid_ == 0 || pid == 0 || pid == this->pid_; } diff --git a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h index 1bf35389347..26a5b68e529 100644 --- a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h +++ b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h @@ -132,13 +132,13 @@ class Locator_Export LiveEntry void do_ping (PortableServer::POA_ptr poa); const ACE_Time_Value &next_check (void) const; static void set_reping_limit (int max); - bool reping_available (void); + bool reping_available (void) const; int next_reping (void); void max_retry_msec (int max); const char *server_name (void) const; void set_pid (int pid); - bool has_pid (int pid); - int pid (void); + bool has_pid (int pid) const; + int pid (void) const; private: LiveCheck *owner_; @@ -158,7 +158,6 @@ class Locator_Export LiveEntry static const int reping_msec_ []; static int reping_limit_; - }; //--------------------------------------------------------------------------- |