summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2019-04-16 08:59:18 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2019-04-16 08:59:18 +0200
commitf6c8325e4e79378efa05c99aa6952f1e1c6b05e6 (patch)
treee8e61b6243a129261f0a340f56ed8f105c8c4f01
parent82d4980d11994c90d7e3fbf20192361ee4c2901d (diff)
downloadATCD-f6c8325e4e79378efa05c99aa6952f1e1c6b05e6.tar.gz
Const changes
* TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp:
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp
index 6c7867c5654..0751d522a6f 100644
--- a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp
@@ -360,9 +360,9 @@ LiveEntry::validate_ping (bool &want_reping, ACE_Time_Value& next)
}
return false;
}
- ACE_Time_Value now (ACE_OS::gettimeofday());
- ACE_Time_Value diff = this->next_check_ - now;
- long msec = diff.msec();
+ ACE_Time_Value const now (ACE_OS::gettimeofday());
+ ACE_Time_Value const diff = this->next_check_ - now;
+ long const msec = diff.msec();
if (msec > 0)
{
if (!want_reping || this->next_check_ < next)
@@ -404,7 +404,7 @@ LiveEntry::validate_ping (bool &want_reping, ACE_Time_Value& next)
{
this->liveliness_ = LS_TRANSIENT;
}
- ACE_Time_Value next (ms / 1000, (ms % 1000) * 1000);
+ ACE_Time_Value const next (ms / 1000, (ms % 1000) * 1000);
this->next_check_ = now + next;
if (ImR_Locator_i::debug () > 4)
{