summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp36
1 files changed, 13 insertions, 23 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp
index c9ea818a549..249be17323a 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp
@@ -47,7 +47,7 @@ TAO_UTO::~TAO_UTO (void)
// Get Method for the readonly attribute time.
TimeBase::TimeT
-TAO_UTO::time (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_UTO::time (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return attr_utc_time_.time;
@@ -56,7 +56,7 @@ TAO_UTO::time (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
// Get method for the readonly attribute inaccuracy.
TimeBase::InaccuracyT
-TAO_UTO::inaccuracy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_UTO::inaccuracy (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
// Construct the Inaccuracy from the
@@ -71,7 +71,7 @@ TAO_UTO::inaccuracy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
// Get method for the readonly attribute tdf.
TimeBase::TdfT
-TAO_UTO::tdf (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_UTO::tdf (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return attr_utc_time_.tdf;
@@ -80,7 +80,7 @@ TAO_UTO::tdf (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
// Get method for the readonly attribute utc_time.
TimeBase::UtcT
-TAO_UTO::utc_time (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_UTO::utc_time (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return attr_utc_time_;
@@ -90,7 +90,7 @@ TAO_UTO::utc_time (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
// the Base Time, UTC and Distributed Time Sync. Algos. [3].
CosTime::UTO_ptr
-TAO_UTO::absolute_time (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_UTO::absolute_time (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return CosTime::UTO::_nil ();
@@ -105,16 +105,13 @@ TAO_UTO::compare_time (CosTime::ComparisonType comparison_type,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- TimeBase::TimeT uto_time = uto->time (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::TCIndeterminate);
+ TimeBase::TimeT uto_time = uto->time ();
TimeBase::InaccuracyT this_inaccuracy =
- this->inaccuracy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::TCIndeterminate);
+ this->inaccuracy ();
TimeBase::InaccuracyT uto_inaccuracy =
- uto->inaccuracy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::TCIndeterminate);
+ uto->inaccuracy ();
if (comparison_type == CosTime::MidC)
{
@@ -172,8 +169,7 @@ TAO_UTO::time_to_interval (CosTime::UTO_ptr uto
ACE_TRY
{
- TimeBase::TimeT uto_time = uto->time (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ TimeBase::TimeT uto_time = uto->time ();
if (this->time () > uto_time)
{
@@ -182,7 +178,6 @@ TAO_UTO::time_to_interval (CosTime::UTO_ptr uto
this->time ()),
CORBA::NO_MEMORY ());
- ACE_TRY_CHECK;
}
else
{
@@ -191,7 +186,6 @@ TAO_UTO::time_to_interval (CosTime::UTO_ptr uto
uto_time),
CORBA::NO_MEMORY ());
- ACE_TRY_CHECK;
}
}
ACE_CATCHANY
@@ -200,16 +194,15 @@ TAO_UTO::time_to_interval (CosTime::UTO_ptr uto
return CosTime::TIO::_nil ();
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (CosTime::TIO::_nil ());
- return tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ return tio->_this ();
}
// Returns a TIO object representing the error interval around the
// time value in the UTO.
CosTime::TIO_ptr
-TAO_UTO::interval (ACE_ENV_SINGLE_ARG_DECL)
+TAO_UTO::interval (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
TAO_TIO *tio = 0;
@@ -217,8 +210,7 @@ TAO_UTO::interval (ACE_ENV_SINGLE_ARG_DECL)
ACE_TRY
{
TimeBase::TimeT this_inaccuracy =
- this->inaccuracy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->inaccuracy ();
TimeBase::TimeT lower =
this->time () - this_inaccuracy;
@@ -230,7 +222,6 @@ TAO_UTO::interval (ACE_ENV_SINGLE_ARG_DECL)
TAO_TIO (lower,
upper),
CORBA::NO_MEMORY ());
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
@@ -238,9 +229,8 @@ TAO_UTO::interval (ACE_ENV_SINGLE_ARG_DECL)
return CosTime::TIO::_nil ();
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (CosTime::TIO::_nil ());
- return tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ return tio->_this ();
}
TAO_END_VERSIONED_NAMESPACE_DECL