Skip to content

Commit

Permalink
Simplified pointer comparisons
Browse files Browse the repository at this point in the history
    * tao/x11/portable_server/get_skel_arg.h:
  • Loading branch information
jwillemsen committed Mar 9, 2023
1 parent 5defc9d commit 239c6d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tao/x11/portable_server/get_skel_arg.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace TAOX11_NAMESPACE
get_ret_arg (TAO_Operation_Details const * details,
TAO::Argument * const * skel_args)
{
if (details != nullptr && details->use_stub_args ())
if (details && details->use_stub_args ())
{
return static_cast<typename TAOX11_NAMESPACE::Arg_Traits<T>::ret_val *> (details->args ()[0])->arg ();

Expand All @@ -50,7 +50,7 @@ namespace TAOX11_NAMESPACE
TAO_TAO::Argument * const * skel_args,
size_t i)
{
if (details != nullptr && details->use_stub_args ())
if (details && details->use_stub_args ())
{
return static_cast<typename TAOX11_NAMESPACE::Arg_Traits<T>::in_arg_val *> (details->args ()[i])->arg ();
}
Expand All @@ -74,7 +74,7 @@ namespace TAOX11_NAMESPACE
TAO::Argument * const * skel_args,
size_t i)
{
if (details != nullptr && details->use_stub_args ())
if (details && details->use_stub_args ())
{
return static_cast<typename TAOX11_NAMESPACE::Arg_Traits<T>::inout_arg_val *> (details->args ()[i])->arg ();
}
Expand All @@ -98,7 +98,7 @@ namespace TAOX11_NAMESPACE
TAO::Argument * const * skel_args,
size_t i)
{
if (details != nullptr && details->use_stub_args ())
if (details && details->use_stub_args ())
{
return static_cast<typename TAOX11_NAMESPACE::Arg_Traits<T>::out_arg_val *> (details->args ()[i])->arg ();
}
Expand Down

0 comments on commit 239c6d5

Please sign in to comment.