summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp')
-rw-r--r--TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp42
1 files changed, 29 insertions, 13 deletions
diff --git a/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp b/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp
index e4fa0e39cba..ee71d20c050 100644
--- a/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp
+++ b/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp
@@ -81,7 +81,8 @@ TAO_Offer_Exporter::export_to (CosTrading::Register_ptr reg
CosTrading::OfferId_var offer_id =
reg->_cxx_export (offer_obj,
- TT_Info::INTERFACE_NAMES[1],
+ ACE_const_cast (const CosTrading::ServiceTypeName,
+ TT_Info::INTERFACE_NAMES[1]),
this->props_plotters_[i]
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -95,7 +96,8 @@ TAO_Offer_Exporter::export_to (CosTrading::Register_ptr reg
ACE_TRY_CHECK;
offer_id = reg->_cxx_export (offer_obj,
- TT_Info::INTERFACE_NAMES[2],
+ ACE_const_cast (const CosTrading::ServiceTypeName,
+ TT_Info::INTERFACE_NAMES[2]),
this->props_printers_[i]
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -109,7 +111,8 @@ TAO_Offer_Exporter::export_to (CosTrading::Register_ptr reg
ACE_TRY_CHECK;
offer_id = reg->_cxx_export (offer_obj,
- TT_Info::INTERFACE_NAMES[3],
+ ACE_const_cast (const CosTrading::ServiceTypeName,
+ TT_Info::INTERFACE_NAMES[3]),
this->props_fs_[i]
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK
@@ -178,7 +181,9 @@ TAO_Offer_Exporter::export_offers_to_all (ACE_ENV_SINGLE_ARG_DECL)
}
CosTrading::Link::LinkInfo_var link_info =
- link_if->describe_link (link_name_seq[i] ACE_ENV_ARG_PARAMETER);
+ link_if->describe_link (ACE_const_cast (const CosTrading::LinkName,
+ link_name_seq[i].in ())
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
for (int j = 0; j < NUM_OFFERS; j++)
@@ -227,7 +232,9 @@ TAO_Offer_Exporter::withdraw_offers (ACE_ENV_SINGLE_ARG_DECL)
length = offer_id_seq->length ();
for (CORBA::ULong i = 0; i < length; i++)
{
- this->register_->withdraw (offer_id_seq[i] ACE_ENV_ARG_PARAMETER);
+ this->register_->withdraw (ACE_const_cast (const CosTrading::OfferId,
+ offer_id_seq[i].in ())
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
}
@@ -265,7 +272,9 @@ TAO_Offer_Exporter::describe_offers (ACE_ENV_SINGLE_ARG_DECL)
for (CORBA::ULong i = 0; i < length; i++)
{
CosTrading::Register::OfferInfo_var offer_info =
- this->register_->describe (offer_id_seq[i] ACE_ENV_ARG_PARAMETER);
+ this->register_->describe (ACE_const_cast (const CosTrading::OfferId,
+ offer_id_seq[i].in ())
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (this->verbose_)
@@ -325,7 +334,8 @@ TAO_Offer_Exporter::modify_offers (ACE_ENV_SINGLE_ARG_DECL)
for (CORBA::ULong i = 0; i < length; i++)
{
- this->register_->modify (offer_id_seq[i],
+ this->register_->modify (ACE_const_cast (const CosTrading::OfferId,
+ offer_id_seq[i].in ()),
del_list,
modify_list
ACE_ENV_ARG_PARAMETER);
@@ -361,20 +371,26 @@ withdraw_offers_using_constraints (ACE_ENV_SINGLE_ARG_DECL)
ACE_TRY
{
this->register_->
- withdraw_using_constraint (TT_Info::INTERFACE_NAMES[TT_Info::PLOTTER],
- constraint
+ withdraw_using_constraint (ACE_const_cast (const CosTrading::ServiceTypeName,
+ TT_Info::INTERFACE_NAMES[TT_Info::PLOTTER]),
+ ACE_const_cast (const CosTrading::Constraint,
+ constraint)
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
this->register_->
- withdraw_using_constraint (TT_Info::INTERFACE_NAMES[TT_Info::PRINTER],
- constraint
+ withdraw_using_constraint (ACE_const_cast (const CosTrading::ServiceTypeName,
+ TT_Info::INTERFACE_NAMES[TT_Info::PRINTER]),
+ ACE_const_cast (const CosTrading::Constraint,
+ constraint)
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
this->register_->
- withdraw_using_constraint (TT_Info::INTERFACE_NAMES[TT_Info::FILESYSTEM],
- constraint
+ withdraw_using_constraint (ACE_const_cast (const CosTrading::ServiceTypeName,
+ TT_Info::INTERFACE_NAMES[TT_Info::FILESYSTEM]),
+ ACE_const_cast (const CosTrading::Constraint,
+ constraint)
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}