Skip to content

Commit

Permalink
Fixed Coday issues
Browse files Browse the repository at this point in the history
    * TAO/tao/DynamicAny/DynEnum_i.cpp:
    * TAO/tao/DynamicAny/DynStruct_i.cpp:
  • Loading branch information
jwillemsen committed May 21, 2024
1 parent d7df272 commit 7f32588
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 2 additions & 5 deletions TAO/tao/DynamicAny/DynEnum_i.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,12 @@ void
TAO_DynEnum_i::set_as_string (const char *value_as_string)
{
CORBA::TypeCode_var ct = TAO_DynAnyFactory::strip_alias (this->type_.in ());

CORBA::ULong count = ct.in ()->member_count ();

CORBA::ULong const count = ct.in ()->member_count ();
CORBA::ULong i {};
const char *temp {};

for (i = 0; i < count; ++i)
{
temp = ct.in ()->member_name (i);
const char *temp = ct.in ()->member_name (i);

if (!ACE_OS::strcmp (value_as_string, temp))
{
Expand Down
7 changes: 3 additions & 4 deletions TAO/tao/DynamicAny/DynStruct_i.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ TAO_DynStruct_i::to_any ()
out_cdr << this->type_->id ();
}

TAO::Any_Impl *field_impl {};

TAO::Unknown_IDL_Type *field_unk {};
TAO_InputCDR field_in_cdr (static_cast<ACE_Message_Block *> (0));

Expand All @@ -535,12 +535,11 @@ TAO_DynStruct_i::to_any ()
this->da_members_[i]->to_any ();

TAO_OutputCDR field_out_cdr;
field_impl = field_any->impl ();
TAO::Any_Impl *field_impl = field_any->impl ();

if (field_impl->encoded ())
{
field_unk =
dynamic_cast<TAO::Unknown_IDL_Type *> (field_impl);
field_unk = dynamic_cast<TAO::Unknown_IDL_Type *> (field_impl);

if (!field_unk)
throw CORBA::INTERNAL ();
Expand Down

0 comments on commit 7f32588

Please sign in to comment.