diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-02-25 13:27:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 13:27:03 +0100 |
commit | fdf9fe05d6a4499ced8b55b52f179275ce0c90b0 (patch) | |
tree | b63469e57597713738afea9d42ef0e78fcb9d7d4 /TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp | |
parent | e4bcaf22324492a0d784890cd9ca86b4a707e68f (diff) | |
parent | ab938af466a77a9992d95da9fc832ff50444255f (diff) | |
download | ATCD-fdf9fe05d6a4499ced8b55b52f179275ce0c90b0.tar.gz |
Merge pull request #1440 from jwillemsen/jw-cleanupvc6
Cleanup for vc6, use nullptr, remove redundant void, layout changes
Diffstat (limited to 'TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp')
-rw-r--r-- | TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp index b728b74f42c..a2cd7984afd 100644 --- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp @@ -172,33 +172,33 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::marshal_value (TAO_OutputCDR &cdr) template<typename T, typename from_T, typename to_T> const void * -TAO::Any_Special_Impl_T<T, from_T, to_T>::value (void) const +TAO::Any_Special_Impl_T<T, from_T, to_T>::value () const { return this->value_; } template<typename T, typename from_T, typename to_T> void -TAO::Any_Special_Impl_T<T, from_T, to_T>::free_value (void) +TAO::Any_Special_Impl_T<T, from_T, to_T>::free_value () { - if (this->value_destructor_ != 0) + if (this->value_destructor_) { (*this->value_destructor_) (this->value_); - this->value_destructor_ = 0; + this->value_destructor_ = nullptr; } ::CORBA::release (this->type_); - this->value_ = 0; + this->value_ = nullptr; } template<typename T, typename from_T, typename to_T> void TAO::Any_Special_Impl_T<T, from_T, to_T>::_tao_decode (TAO_InputCDR &cdr) { - if (this->value_destructor_ != 0) + if (this->value_destructor_) { (*this->value_destructor_) (this->value_); - this->value_ = 0; + this->value_ = nullptr; } if (! this->demarshal_value (cdr)) |