diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-29 09:16:03 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-29 09:16:03 +0100 |
commit | 1d1caa2f5340920a93898f9e34cd1c5477400320 (patch) | |
tree | e15c34bf9476ee1687965b1eccd78bc316223813 /TAO/tao/AnyTypeCode | |
parent | 76c3b5473a9d0aa75e8f36522eff1a1307f89cf2 (diff) | |
parent | daabeb9bb2388926f610f93c987563ce596e091f (diff) | |
download | ATCD-1d1caa2f5340920a93898f9e34cd1c5477400320.tar.gz |
Merge branch 'master' into test-corba-is-nil
Diffstat (limited to 'TAO/tao/AnyTypeCode')
75 files changed, 421 insertions, 524 deletions
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode.h b/TAO/tao/AnyTypeCode/Alias_TypeCode.h index d617283dbb0..4b525902eb6 100644 --- a/TAO/tao/AnyTypeCode/Alias_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Alias_TypeCode.h @@ -66,8 +66,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -82,10 +82,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::TypeCode_ptr content_type_i () const; private: /// Base attributes for this @c TypeCode containing the diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp index 6a89a9dcb7b..48e0a7a074e 100644 --- a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp @@ -57,14 +57,14 @@ TAO::TypeCode::Alias<char const *, void TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -100,7 +100,7 @@ TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::get_compact_typecode_i (void) const + TAO::Null_RefCount_Policy>::get_compact_typecode_i () const { TAO_TypeCodeFactory_Adapter * const adapter = ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance ( @@ -132,7 +132,7 @@ TAO::TypeCode::Alias<char const *, char const * TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::id_i (void) const + TAO::Null_RefCount_Policy>::id_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -142,7 +142,7 @@ TAO::TypeCode::Alias<char const *, char const * TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -152,7 +152,7 @@ TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::content_type_i (void) const + TAO::Null_RefCount_Policy>::content_type_i () const { return CORBA::TypeCode::_duplicate ( diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h index 05a8f675fac..96c9bac0238 100644 --- a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h @@ -69,8 +69,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -85,10 +85,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::TypeCode_ptr content_type_i () const; private: /// Base attributes for this @c TypeCode containing the diff --git a/TAO/tao/AnyTypeCode/Any.cpp b/TAO/tao/AnyTypeCode/Any.cpp index b74124189a3..45e7c8c7c51 100644 --- a/TAO/tao/AnyTypeCode/Any.cpp +++ b/TAO/tao/AnyTypeCode/Any.cpp @@ -23,7 +23,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL using namespace TAO; -CORBA::Any::Any (void) +CORBA::Any::Any () : impl_ (0) { } @@ -37,7 +37,7 @@ CORBA::Any::Any (const CORBA::Any &rhs) } } -CORBA::Any::~Any (void) +CORBA::Any::~Any () { if (this->impl_ != 0) { @@ -80,7 +80,7 @@ CORBA::Any::replace (TAO::Any_Impl *new_impl) } CORBA::TypeCode_ptr -CORBA::Any::type (void) const +CORBA::Any::type () const { if (this->impl_ != 0) { @@ -91,7 +91,7 @@ CORBA::Any::type (void) const } CORBA::TypeCode_ptr -CORBA::Any::_tao_get_typecode (void) const +CORBA::Any::_tao_get_typecode () const { if (this->impl_ != 0) { @@ -116,7 +116,7 @@ CORBA::Any::_tao_set_typecode (const CORBA::TypeCode_ptr tc) } int -CORBA::Any::_tao_byte_order (void) const +CORBA::Any::_tao_byte_order () const { if (this->impl_ != 0) { diff --git a/TAO/tao/AnyTypeCode/Any.h b/TAO/tao/AnyTypeCode/Any.h index 2f644c9ad78..9f879820950 100644 --- a/TAO/tao/AnyTypeCode/Any.h +++ b/TAO/tao/AnyTypeCode/Any.h @@ -66,13 +66,13 @@ namespace CORBA typedef Any_var _var_type; typedef Any_out _out_type; - Any (void); + Any (); Any (const Any &); - ~Any (void); + ~Any (); Any &operator= (const Any &); - TAO::Any_Impl *impl (void) const; + TAO::Any_Impl *impl () const; /// Used in our destruction if we ourselves are stored in an Any. static void _tao_any_destructor (void *); @@ -146,19 +146,19 @@ namespace CORBA void replace (TAO::Any_Impl *); /// Return TypeCode of the element stored in the Any. - TypeCode_ptr type (void) const; + TypeCode_ptr type () const; /// For use along with <<= of a value of aliased type when the alias must /// be preserved. void type (TypeCode_ptr); /// TAO extension, does not return a duplicate. - CORBA::TypeCode_ptr _tao_get_typecode (void) const; + CORBA::TypeCode_ptr _tao_get_typecode () const; /// TAO extension. void _tao_set_typecode (const CORBA::TypeCode_ptr); - int _tao_byte_order (void) const; + int _tao_byte_order () const; private: CORBA::Boolean checked_to_object (CORBA::Object_ptr &) const; @@ -184,10 +184,10 @@ namespace CORBA class TAO_AnyTypeCode_Export Any_var { public: - Any_var (void); + Any_var (); Any_var (Any *a); Any_var (const Any_var &); - ~Any_var (void); + ~Any_var (); Any_var &operator= (Any *); @@ -200,7 +200,7 @@ namespace CORBA Any_var &operator= (const Any_var &); /// Arrow operator (smart pointer). - Any *operator-> (void); + Any *operator-> (); /// Cast. operator const Any *() const; @@ -209,19 +209,19 @@ namespace CORBA operator Any *&(); /// For in Any parameter. - const Any &in (void) const; + const Any &in () const; /// For inout Any parameter. - Any &inout (void); + Any &inout (); /// For out Any parameter. - Any *&out (void); + Any *&out (); /// For Any return type. - Any *_retn (void); + Any *_retn (); /// TAO specific extension - Any *ptr (void) const; + Any *ptr () const; private: /// Holds the Any. Any *ptr_; @@ -252,9 +252,9 @@ namespace CORBA operator Any *&(); /// Return underlying instance. - Any *& ptr (void); + Any *& ptr (); - Any *operator-> (void); + Any *operator-> (); private: /// Assignment from _var disallowed. diff --git a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp index cb8beef4ed0..7c9a1911696 100644 --- a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp +++ b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp @@ -287,7 +287,7 @@ TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, const CORBA::WS } int -TAO_AnyTypeCode_Adapter_Impl::Initializer (void) +TAO_AnyTypeCode_Adapter_Impl::Initializer () { // The TAO::Unknown_IDL_Type::lock_i () is a PRIVATE thread unsafe singleton // which we need to initialise before Unknown_IDL_Types are used in a diff --git a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h index ab8c7d6d3f6..566233eb0cf 100644 --- a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h +++ b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h @@ -32,7 +32,7 @@ class TAO_AnyTypeCode_Export TAO_AnyTypeCode_Adapter_Impl { public: // Used to force the initialization of the code. - static int Initializer (void); + static int Initializer (); #define ANYTYPECODE__EXCEPTION_LIST \ TAO_SYSTEM_EXCEPTION (UNKNOWN) \ diff --git a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp index 678233f3951..9222c88dbce 100644 --- a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp @@ -93,11 +93,7 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::extract (const CORBA::Any & any, T_forany::tao_alloc ()), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Array_Impl_T<T_slice, T_forany> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Array_Impl_T<T_slice, T_forany> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = @@ -161,8 +157,7 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::free_value (void) template<typename T_slice, typename T_forany> void -TAO::Any_Array_Impl_T<T_slice, T_forany>::_tao_decode (TAO_InputCDR &cdr - ) +TAO::Any_Array_Impl_T<T_slice, T_forany>::_tao_decode (TAO_InputCDR &cdr) { if (! this->demarshal_value (cdr)) { diff --git a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h index b2879bf3438..660d3080136 100644 --- a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h @@ -51,8 +51,7 @@ namespace TAO virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); CORBA::Boolean demarshal_value (TAO_InputCDR &); - virtual void _tao_decode (TAO_InputCDR & - ); + virtual void _tao_decode (TAO_InputCDR &); virtual const void *value (void) const; virtual void free_value (void); diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp index ace666a3009..8273695fffd 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp @@ -66,7 +66,7 @@ namespace TAO } } - Any_Basic_Impl::~Any_Basic_Impl (void) + Any_Basic_Impl::~Any_Basic_Impl () { } @@ -116,11 +116,7 @@ namespace TAO TAO::Any_Basic_Impl *replacement = TAO::Any_Basic_Impl::create_empty (any_tc); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Basic_Impl> replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Basic_Impl> replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl.h b/TAO/tao/AnyTypeCode/Any_Basic_Impl.h index ab18778fc0f..c2796c62777 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl.h +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl.h @@ -40,7 +40,7 @@ namespace TAO Any_Basic_Impl (CORBA::TypeCode_ptr, void *value); - virtual ~Any_Basic_Impl (void); + virtual ~Any_Basic_Impl (); static void insert (CORBA::Any &, CORBA::TypeCode_ptr, diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp index a45b3b2481b..7e82b968f9f 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp @@ -78,11 +78,7 @@ TAO::Any_Basic_Impl_T<T>::extract (const CORBA::Any & any, TAO::Any_Basic_Impl_T<T> * const replacement = TAO::Any_Basic_Impl_T<T>::create_empty (any_tc); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Basic_Impl_T<T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Basic_Impl_T<T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h index dd1395d764d..fdd7343bbaf 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h @@ -37,7 +37,7 @@ namespace TAO public: Any_Basic_Impl_T (CORBA::TypeCode_ptr, const T & val); - virtual ~Any_Basic_Impl_T (void); + virtual ~Any_Basic_Impl_T (); static void insert (CORBA::Any &, CORBA::TypeCode_ptr, @@ -50,7 +50,7 @@ namespace TAO CORBA::Boolean demarshal_value (TAO_InputCDR &); virtual void _tao_decode (TAO_InputCDR &); - virtual const void *value (void) const; + virtual const void *value () const; static Any_Basic_Impl_T<T> *create_empty (CORBA::TypeCode_ptr); private: diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp index 42cc10a0066..41bb34ba6aa 100644 --- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp @@ -158,11 +158,7 @@ TAO::Any_Dual_Impl_T<T>::replace (TAO_InputCDR &cdr, ACE_NEW_RETURN (empty_value, T, false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<T> empty_value_safety (empty_value); -#else - auto_ptr<T> empty_value_safety (empty_value); -#endif /* ACE_HAS_CPP11 */ TAO::Any_Dual_Impl_T<T> *replacement = 0; ACE_NEW_RETURN (replacement, TAO::Any_Dual_Impl_T<T> (destructor, @@ -170,11 +166,7 @@ TAO::Any_Dual_Impl_T<T>::replace (TAO_InputCDR &cdr, empty_value), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Dual_Impl_T<T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Dual_Impl_T<T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ CORBA::Boolean const good_decode = replacement->demarshal_value (cdr); diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h index 4d35f4add89..dd627266355 100644 --- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h @@ -45,7 +45,7 @@ namespace TAO CORBA::TypeCode_ptr, const T &); Any_Dual_Impl_T (CORBA::TypeCode_ptr); - virtual ~Any_Dual_Impl_T (void); + virtual ~Any_Dual_Impl_T (); static void insert (CORBA::Any &, _tao_destructor, @@ -64,8 +64,8 @@ namespace TAO CORBA::Boolean demarshal_value (TAO_InputCDR &); virtual void _tao_decode (TAO_InputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); protected: void value (const T &); diff --git a/TAO/tao/AnyTypeCode/Any_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Impl.cpp index 3633d68739f..b1867d468e3 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl.cpp +++ b/TAO/tao/AnyTypeCode/Any_Impl.cpp @@ -22,7 +22,7 @@ TAO::Any_Impl::Any_Impl (_tao_destructor destructor, { } -TAO::Any_Impl::~Any_Impl (void) +TAO::Any_Impl::~Any_Impl () { } @@ -56,20 +56,20 @@ TAO::Any_Impl::marshal (TAO_OutputCDR &cdr) } void -TAO::Any_Impl::free_value (void) +TAO::Any_Impl::free_value () { // We always have to do this. ::CORBA::release (this->type_); } CORBA::TypeCode_ptr -TAO::Any_Impl::type (void) const +TAO::Any_Impl::type () const { return CORBA::TypeCode::_duplicate (this->type_); } CORBA::TypeCode_ptr -TAO::Any_Impl::_tao_get_typecode (void) const +TAO::Any_Impl::_tao_get_typecode () const { return this->type_; } @@ -82,7 +82,7 @@ TAO::Any_Impl::type (CORBA::TypeCode_ptr tc) } int -TAO::Any_Impl::_tao_byte_order (void) const +TAO::Any_Impl::_tao_byte_order () const { return TAO_ENCAP_BYTE_ORDER; } @@ -102,13 +102,13 @@ TAO::Any_Impl::_tao_any_wstring_destructor (void *x) } void -TAO::Any_Impl::_add_ref (void) +TAO::Any_Impl::_add_ref () { ++this->refcount_; } void -TAO::Any_Impl::_remove_ref (void) +TAO::Any_Impl::_remove_ref () { CORBA::ULong const new_count = --this->refcount_; @@ -145,7 +145,7 @@ TAO::Any_Impl::to_abstract_base (CORBA::AbstractBase_ptr &) const } bool -TAO::Any_Impl::encoded (void) const +TAO::Any_Impl::encoded () const { return this->encoded_; } diff --git a/TAO/tao/AnyTypeCode/Any_Impl.h b/TAO/tao/AnyTypeCode/Any_Impl.h index 2446ec37368..622ade7405c 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl.h +++ b/TAO/tao/AnyTypeCode/Any_Impl.h @@ -22,15 +22,7 @@ #include "tao/AnyTypeCode/TAO_AnyTypeCode_Export.h" #include "tao/Basic_Types.h" - -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Synch_Traits.h" -# include "ace/Null_Mutex.h" -# include "ace/Thread_Mutex.h" -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -69,16 +61,16 @@ namespace TAO CORBA::Boolean marshal (TAO_OutputCDR &); virtual CORBA::Boolean marshal_value (TAO_OutputCDR &) = 0; - virtual void free_value (void); + virtual void free_value (); - CORBA::TypeCode_ptr type (void) const; - CORBA::TypeCode_ptr _tao_get_typecode (void) const; + CORBA::TypeCode_ptr type () const; + CORBA::TypeCode_ptr _tao_get_typecode () const; void type (CORBA::TypeCode_ptr); - virtual int _tao_byte_order (void) const; + virtual int _tao_byte_order () const; - virtual void _add_ref (void); - virtual void _remove_ref (void); + virtual void _add_ref (); + virtual void _remove_ref (); /// Used to release these CORBA basic types. static void _tao_any_string_destructor (void *); @@ -90,13 +82,13 @@ namespace TAO virtual CORBA::Boolean to_value (CORBA::ValueBase *&) const; virtual CORBA::Boolean to_abstract_base (CORBA::AbstractBase_ptr &) const; - bool encoded (void) const; + bool encoded () const; protected: Any_Impl (_tao_destructor, CORBA::TypeCode_ptr, bool encoded = false); - virtual ~Any_Impl (void); + virtual ~Any_Impl (); TAO::Any_Impl::_tao_destructor value_destructor_; CORBA::TypeCode_ptr type_; @@ -104,11 +96,7 @@ namespace TAO private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; } diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp index f389796bff3..c0ba6c2d82b 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp @@ -91,11 +91,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any, 0), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Impl_T<T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Impl_T<T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Impl_T.h index 3be4db172f9..c69f916df91 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Impl_T.h @@ -43,7 +43,7 @@ namespace TAO Any_Impl_T (_tao_destructor destructor, CORBA::TypeCode_ptr, T * const); - virtual ~Any_Impl_T (void); + virtual ~Any_Impl_T (); static void insert (CORBA::Any &, _tao_destructor destructor, @@ -61,8 +61,8 @@ namespace TAO virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); CORBA::Boolean demarshal_value (TAO_InputCDR &); virtual void _tao_decode (TAO_InputCDR & ); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); private: T * value_; diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp index a5cdeb3239d..b728b74f42c 100644 --- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp @@ -129,11 +129,7 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any, bound), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Special_Impl_T<T, from_T, to_T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Special_Impl_T<T, from_T, to_T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h index c153ea9ce8c..c57d09c7a04 100644 --- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h @@ -37,7 +37,7 @@ namespace TAO CORBA::TypeCode_ptr, T * const, CORBA::ULong bound); - virtual ~Any_Special_Impl_T (void); + virtual ~Any_Special_Impl_T (); static void insert (CORBA::Any &, _tao_destructor destructor, @@ -52,11 +52,10 @@ namespace TAO virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); CORBA::Boolean demarshal_value (TAO_InputCDR &); - virtual void _tao_decode (TAO_InputCDR & - ); + virtual void _tao_decode (TAO_InputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); private: T * value_; diff --git a/TAO/tao/AnyTypeCode/Any_SystemException.cpp b/TAO/tao/AnyTypeCode/Any_SystemException.cpp index 2e06f71b942..1e905894b64 100644 --- a/TAO/tao/AnyTypeCode/Any_SystemException.cpp +++ b/TAO/tao/AnyTypeCode/Any_SystemException.cpp @@ -40,7 +40,7 @@ TAO::Any_SystemException::Any_SystemException (CORBA::TypeCode_ptr tc) { } -TAO::Any_SystemException::~Any_SystemException (void) +TAO::Any_SystemException::~Any_SystemException () { } @@ -116,11 +116,7 @@ TAO::Any_SystemException::extract (const CORBA::Any & any, empty_value), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_SystemException > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_SystemException > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = @@ -152,7 +148,7 @@ TAO::Any_SystemException::extract (const CORBA::Any & any, } void -TAO::Any_SystemException::free_value (void) +TAO::Any_SystemException::free_value () { if (this->value_destructor_ != 0) { @@ -165,7 +161,7 @@ TAO::Any_SystemException::free_value (void) } const void * -TAO::Any_SystemException::value (void) const +TAO::Any_SystemException::value () const { return this->value_; } diff --git a/TAO/tao/AnyTypeCode/Any_SystemException.h b/TAO/tao/AnyTypeCode/Any_SystemException.h index 2cb231476f4..622e5e501d4 100644 --- a/TAO/tao/AnyTypeCode/Any_SystemException.h +++ b/TAO/tao/AnyTypeCode/Any_SystemException.h @@ -50,7 +50,7 @@ namespace TAO Any_SystemException (CORBA::TypeCode_ptr); - virtual ~Any_SystemException (void); + virtual ~Any_SystemException (); static void insert (CORBA::Any &, _tao_destructor, @@ -71,8 +71,8 @@ namespace TAO virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); CORBA::Boolean demarshal_value (TAO_InputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); protected: CORBA::SystemException *value_; diff --git a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp index 72e818c8ca7..bacd24e67d5 100644 --- a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp +++ b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp @@ -14,7 +14,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::Unknown_IDL_Type::LOCK const -TAO::Unknown_IDL_Type::lock_i (void) +TAO::Unknown_IDL_Type::lock_i () { static LOCK base_lock_ (new ACE_Lock_Adapter<TAO_SYNCH_MUTEX>()); return base_lock_; @@ -49,7 +49,7 @@ TAO::Unknown_IDL_Type::Unknown_IDL_Type (CORBA::TypeCode_ptr tc) { } -TAO::Unknown_IDL_Type::~Unknown_IDL_Type (void) +TAO::Unknown_IDL_Type::~Unknown_IDL_Type () { } @@ -81,25 +81,25 @@ TAO::Unknown_IDL_Type::marshal_value (TAO_OutputCDR & cdr) } const void * -TAO::Unknown_IDL_Type::value (void) const +TAO::Unknown_IDL_Type::value () const { return this->cdr_.start (); } void -TAO::Unknown_IDL_Type::free_value (void) +TAO::Unknown_IDL_Type::free_value () { ::CORBA::release (this->type_); } TAO_InputCDR & -TAO::Unknown_IDL_Type::_tao_get_cdr (void) +TAO::Unknown_IDL_Type::_tao_get_cdr () { return this->cdr_; } int -TAO::Unknown_IDL_Type::_tao_byte_order (void) const +TAO::Unknown_IDL_Type::_tao_byte_order () const { return this->cdr_.byte_order (); } diff --git a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h index b313a294ef0..a26f7f02240 100644 --- a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h +++ b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h @@ -43,14 +43,14 @@ namespace TAO Unknown_IDL_Type (CORBA::TypeCode_ptr); - virtual ~Unknown_IDL_Type (void); + virtual ~Unknown_IDL_Type (); virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); - virtual TAO_InputCDR &_tao_get_cdr (void); - virtual int _tao_byte_order (void) const; + virtual TAO_InputCDR &_tao_get_cdr (); + virtual int _tao_byte_order () const; virtual void _tao_decode (TAO_InputCDR &); @@ -79,7 +79,7 @@ namespace TAO typedef ACE_Refcounted_Auto_Ptr<ACE_Lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX> > LOCK; - static LOCK const lock_i (void); + static LOCK const lock_i (); LOCK const lock_; mutable TAO_InputCDR cdr_; }; diff --git a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp index 1cf8645c5a2..6792fb8b35f 100644 --- a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp @@ -16,7 +16,7 @@ TAO::TypeCode::Empty_Param::tao_marshal (TAO_OutputCDR &, CORBA::ULong) const } void -TAO::TypeCode::Empty_Param::tao_duplicate (void) +TAO::TypeCode::Empty_Param::tao_duplicate () { // No-op since empty parameter TypeCodes are never created // dynamically, meaning there is no need to implement reference @@ -24,7 +24,7 @@ TAO::TypeCode::Empty_Param::tao_duplicate (void) } void -TAO::TypeCode::Empty_Param::tao_release (void) +TAO::TypeCode::Empty_Param::tao_release () { // No-op since empty parameter TypeCodes are never created // dynamically, meaning there is no need to implement reference @@ -58,7 +58,7 @@ TAO::TypeCode::Empty_Param::equivalent_i (CORBA::TypeCode_ptr tc) const } CORBA::TypeCode_ptr -TAO::TypeCode::Empty_Param::get_compact_typecode_i (void) const +TAO::TypeCode::Empty_Param::get_compact_typecode_i () const { // Already compact since parameter list is empty. diff --git a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h index d0ef4e370c2..ba194eff926 100644 --- a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h @@ -60,8 +60,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -76,7 +76,7 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; }; } // End namespace TypeCode diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp b/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp index 2297a263a00..37e64256a52 100644 --- a/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp @@ -157,8 +157,7 @@ TAO::TypeCode::Enum<StringType, adapter->create_enum_tc (this->base_attributes_.id (), "" /* empty name */, tc_enumerators, - this->nenumerators_ - ); + this->nenumerators_); } template <typename StringType, class EnumeratorArrayType, class RefCountPolicy> diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode.h b/TAO/tao/AnyTypeCode/Enum_TypeCode.h index dbd05818165..245bb43c630 100644 --- a/TAO/tao/AnyTypeCode/Enum_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Enum_TypeCode.h @@ -63,8 +63,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -78,10 +78,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp index 5ef55878740..81af701debf 100644 --- a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp @@ -58,14 +58,14 @@ TAO::TypeCode::Enum<char const *, void TAO::TypeCode::Enum<char const *, char const * const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Enum<char const *, char const * const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -124,7 +124,7 @@ CORBA::TypeCode_ptr TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { ACE_Array_Base<CORBA::String_var> tc_enumerators (this->nenumerators_); @@ -154,15 +154,14 @@ TAO::TypeCode::Enum<char const *, adapter->create_enum_tc (this->base_attributes_.id (), "" /* empty name */, tc_enumerators, - this->nenumerators_ - ); + this->nenumerators_); } char const * TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -173,7 +172,7 @@ char const * TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::name_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -184,7 +183,7 @@ CORBA::ULong TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::member_count_i ( - void) const + ) const { return this->nenumerators_; } diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h index 8fd342a90ef..4e35dc18586 100644 --- a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h @@ -69,8 +69,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -84,10 +84,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/Fixed_TypeCode.h b/TAO/tao/AnyTypeCode/Fixed_TypeCode.h index 56a6b685fa0..e84730b2469 100644 --- a/TAO/tao/AnyTypeCode/Fixed_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Fixed_TypeCode.h @@ -57,8 +57,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -73,9 +73,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::UShort fixed_digits_i (void) const; - virtual CORBA::UShort fixed_scale_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::UShort fixed_digits_i () const; + virtual CORBA::UShort fixed_scale_i () const; private: /// The number of significant digits. diff --git a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp index ec34f735087..93a88f1bbc7 100644 --- a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp @@ -24,7 +24,7 @@ TAO::TypeCode::Indirected_Type::tao_marshal (TAO_OutputCDR & cdr, } void -TAO::TypeCode::Indirected_Type::tao_duplicate (void) +TAO::TypeCode::Indirected_Type::tao_duplicate () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_); @@ -39,7 +39,7 @@ TAO::TypeCode::Indirected_Type::tao_duplicate (void) } void -TAO::TypeCode::Indirected_Type::tao_release (void) +TAO::TypeCode::Indirected_Type::tao_release () { unsigned long newcount; CORBA::TypeCode_ptr curmaster; @@ -103,25 +103,25 @@ TAO::TypeCode::Indirected_Type::equivalent_i ( } CORBA::TypeCode_ptr -TAO::TypeCode::Indirected_Type::get_compact_typecode_i (void) const +TAO::TypeCode::Indirected_Type::get_compact_typecode_i () const { return this->recursive_tc_ ? this->recursive_tc_->get_compact_typecode () : 0; } char const * -TAO::TypeCode::Indirected_Type::id_i (void) const +TAO::TypeCode::Indirected_Type::id_i () const { return this->id_.in (); } char const * -TAO::TypeCode::Indirected_Type::name_i (void) const +TAO::TypeCode::Indirected_Type::name_i () const { return this->recursive_tc_ ? this->recursive_tc_->name () : 0; } CORBA::ULong -TAO::TypeCode::Indirected_Type::member_count_i (void) const +TAO::TypeCode::Indirected_Type::member_count_i () const { return this->recursive_tc_ ? this->recursive_tc_->member_count () : 0; } @@ -147,13 +147,13 @@ TAO::TypeCode::Indirected_Type::member_visibility_i (CORBA::ULong index) const } CORBA::ValueModifier -TAO::TypeCode::Indirected_Type::type_modifier_i (void) const +TAO::TypeCode::Indirected_Type::type_modifier_i () const { return this->recursive_tc_ ? this->recursive_tc_->type_modifier () : 0; } CORBA::TypeCode_ptr -TAO::TypeCode::Indirected_Type::concrete_base_type_i (void) const +TAO::TypeCode::Indirected_Type::concrete_base_type_i () const { return this->recursive_tc_ ? this->recursive_tc_->concrete_base_type () : 0; } @@ -165,13 +165,13 @@ TAO::TypeCode::Indirected_Type::member_label_i (CORBA::ULong index) const } CORBA::TypeCode_ptr -TAO::TypeCode::Indirected_Type::discriminator_type_i (void) const +TAO::TypeCode::Indirected_Type::discriminator_type_i () const { return this->recursive_tc_ ? this->recursive_tc_->discriminator_type () : 0; } CORBA::Long -TAO::TypeCode::Indirected_Type::default_index_i (void) const +TAO::TypeCode::Indirected_Type::default_index_i () const { return this->recursive_tc_ ? this->recursive_tc_->default_index () : 0; } diff --git a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h index b72f0d14f2e..4d810a4150a 100644 --- a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h @@ -64,8 +64,8 @@ namespace TAO //@{ virtual bool tao_marshal_kind (TAO_OutputCDR & cdr) const; virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Setter for recursive reference. @@ -83,10 +83,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; //@} @@ -101,8 +101,8 @@ namespace TAO */ //@{ virtual CORBA::Any * member_label_i (CORBA::ULong index) const; - virtual CORBA::TypeCode_ptr discriminator_type_i (void) const; - virtual CORBA::Long default_index_i (void) const; + virtual CORBA::TypeCode_ptr discriminator_type_i () const; + virtual CORBA::Long default_index_i () const; //@} /** @@ -115,8 +115,8 @@ namespace TAO */ //@{ virtual CORBA::Visibility member_visibility_i (CORBA::ULong index) const; - virtual CORBA::ValueModifier type_modifier_i (void) const; - virtual CORBA::TypeCode_ptr concrete_base_type_i (void) const; + virtual CORBA::ValueModifier type_modifier_i () const; + virtual CORBA::TypeCode_ptr concrete_base_type_i () const; //@} private: diff --git a/TAO/tao/AnyTypeCode/Marshal.cpp b/TAO/tao/AnyTypeCode/Marshal.cpp index 965d22e645c..b7274bcd458 100644 --- a/TAO/tao/AnyTypeCode/Marshal.cpp +++ b/TAO/tao/AnyTypeCode/Marshal.cpp @@ -21,7 +21,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Marshal_Object::~TAO_Marshal_Object (void) +TAO_Marshal_Object::~TAO_Marshal_Object () { } diff --git a/TAO/tao/AnyTypeCode/Marshal.h b/TAO/tao/AnyTypeCode/Marshal.h index 09a5705b113..6c6bee37e03 100644 --- a/TAO/tao/AnyTypeCode/Marshal.h +++ b/TAO/tao/AnyTypeCode/Marshal.h @@ -75,10 +75,10 @@ class TAO_AnyTypeCode_Export TAO_Marshal_Object { public: /// constructor - TAO_Marshal_Object (void); + TAO_Marshal_Object (); /// destructor - virtual ~TAO_Marshal_Object (void); + virtual ~TAO_Marshal_Object (); /// skip entry point, it allocates the right kind of Marshal_Object /// and invokes skip on it. @@ -111,7 +111,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Primitive: public TAO_Marshal_Object { public: - TAO_Marshal_Primitive (void); + TAO_Marshal_Primitive (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -133,7 +133,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Any: public TAO_Marshal_Object { public: - TAO_Marshal_Any (void); + TAO_Marshal_Any (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -155,7 +155,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_TypeCode: public TAO_Marshal_Object { public: - TAO_Marshal_TypeCode (void); + TAO_Marshal_TypeCode (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -177,7 +177,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Principal: public TAO_Marshal_Object { public: - TAO_Marshal_Principal (void); + TAO_Marshal_Principal (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -199,7 +199,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_ObjRef: public TAO_Marshal_Object { public: - TAO_Marshal_ObjRef (void); + TAO_Marshal_ObjRef (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -221,7 +221,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Struct : public TAO_Marshal_Object { public: - TAO_Marshal_Struct (void); + TAO_Marshal_Struct (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -243,7 +243,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Union: public TAO_Marshal_Object { public: - TAO_Marshal_Union (void); + TAO_Marshal_Union (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -265,7 +265,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_String: public TAO_Marshal_Object { public: - TAO_Marshal_String (void); + TAO_Marshal_String (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -287,7 +287,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Sequence: public TAO_Marshal_Object { public: - TAO_Marshal_Sequence (void); + TAO_Marshal_Sequence (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -309,7 +309,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Array: public TAO_Marshal_Object { public: - TAO_Marshal_Array (void); + TAO_Marshal_Array (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -331,7 +331,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Alias: public TAO_Marshal_Object { public: - TAO_Marshal_Alias (void); + TAO_Marshal_Alias (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -353,7 +353,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Except: public TAO_Marshal_Object { public: - TAO_Marshal_Except (void); + TAO_Marshal_Except (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -375,7 +375,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_WString : public TAO_Marshal_Object { public: - TAO_Marshal_WString (void); + TAO_Marshal_WString (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -397,7 +397,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Value: public TAO_Marshal_Object { public: - TAO_Marshal_Value (void); + TAO_Marshal_Value (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, diff --git a/TAO/tao/AnyTypeCode/Marshal.inl b/TAO/tao/AnyTypeCode/Marshal.inl index 281a0225f2f..54d26c68102 100644 --- a/TAO/tao/AnyTypeCode/Marshal.inl +++ b/TAO/tao/AnyTypeCode/Marshal.inl @@ -3,77 +3,77 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE -TAO_Marshal_Object::TAO_Marshal_Object (void) +TAO_Marshal_Object::TAO_Marshal_Object () { } ACE_INLINE -TAO_Marshal_Primitive::TAO_Marshal_Primitive (void) +TAO_Marshal_Primitive::TAO_Marshal_Primitive () { } ACE_INLINE -TAO_Marshal_Any::TAO_Marshal_Any (void) +TAO_Marshal_Any::TAO_Marshal_Any () { } ACE_INLINE -TAO_Marshal_Principal::TAO_Marshal_Principal (void) +TAO_Marshal_Principal::TAO_Marshal_Principal () { } ACE_INLINE -TAO_Marshal_TypeCode::TAO_Marshal_TypeCode (void) +TAO_Marshal_TypeCode::TAO_Marshal_TypeCode () { } ACE_INLINE -TAO_Marshal_ObjRef::TAO_Marshal_ObjRef (void) +TAO_Marshal_ObjRef::TAO_Marshal_ObjRef () { } ACE_INLINE -TAO_Marshal_Struct::TAO_Marshal_Struct (void) +TAO_Marshal_Struct::TAO_Marshal_Struct () { } ACE_INLINE -TAO_Marshal_Union::TAO_Marshal_Union (void) +TAO_Marshal_Union::TAO_Marshal_Union () { } ACE_INLINE -TAO_Marshal_String::TAO_Marshal_String (void) +TAO_Marshal_String::TAO_Marshal_String () { } ACE_INLINE -TAO_Marshal_Sequence::TAO_Marshal_Sequence (void) +TAO_Marshal_Sequence::TAO_Marshal_Sequence () { } ACE_INLINE -TAO_Marshal_Array::TAO_Marshal_Array (void) +TAO_Marshal_Array::TAO_Marshal_Array () { } ACE_INLINE -TAO_Marshal_Alias::TAO_Marshal_Alias (void) +TAO_Marshal_Alias::TAO_Marshal_Alias () { } ACE_INLINE -TAO_Marshal_Except::TAO_Marshal_Except (void) +TAO_Marshal_Except::TAO_Marshal_Except () { } ACE_INLINE -TAO_Marshal_WString::TAO_Marshal_WString (void) +TAO_Marshal_WString::TAO_Marshal_WString () { } ACE_INLINE -TAO_Marshal_Value::TAO_Marshal_Value (void) +TAO_Marshal_Value::TAO_Marshal_Value () : nested_processing_ (false) { } diff --git a/TAO/tao/AnyTypeCode/NVList.cpp b/TAO/tao/AnyTypeCode/NVList.cpp index 927ae22006c..7c0571e618f 100644 --- a/TAO/tao/AnyTypeCode/NVList.cpp +++ b/TAO/tao/AnyTypeCode/NVList.cpp @@ -23,13 +23,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Reference counting for DII Request object CORBA::ULong -CORBA::NamedValue::_incr_refcount (void) +CORBA::NamedValue::_incr_refcount () { return ++this->refcount_; } CORBA::ULong -CORBA::NamedValue::_decr_refcount (void) +CORBA::NamedValue::_decr_refcount () { CORBA::ULong const new_count = --this->refcount_; @@ -39,7 +39,7 @@ CORBA::NamedValue::_decr_refcount (void) return new_count; } -CORBA::NamedValue::~NamedValue (void) +CORBA::NamedValue::~NamedValue () { if (this->name_) { @@ -52,13 +52,13 @@ CORBA::NamedValue::~NamedValue (void) // **************************************************************** CORBA::ULong -CORBA::NVList::_incr_refcount (void) +CORBA::NVList::_incr_refcount () { return ++this->refcount_; } CORBA::ULong -CORBA::NVList::_decr_refcount (void) +CORBA::NVList::_decr_refcount () { CORBA::ULong const new_count = --this->refcount_; @@ -68,7 +68,7 @@ CORBA::NVList::_decr_refcount (void) return new_count; } -CORBA::NVList::~NVList (void) +CORBA::NVList::~NVList () { // initialize an iterator and delete each NamedValue ACE_Unbounded_Queue_Iterator<CORBA::NamedValue_ptr> iter (this->values_); @@ -402,7 +402,7 @@ CORBA::NVList::_tao_decode (TAO_InputCDR &incoming, int flag) } ptrdiff_t -CORBA::NVList::_tao_target_alignment (void) +CORBA::NVList::_tao_target_alignment () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, @@ -426,17 +426,13 @@ CORBA::NVList::_tao_target_alignment (void) } void -CORBA::NVList::evaluate (void) +CORBA::NVList::evaluate () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->incoming_ != 0) { -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_InputCDR> incoming (this->incoming_); -#else - auto_ptr<TAO_InputCDR> incoming (this->incoming_); -#endif /* ACE_HAS_CPP11 */ this->incoming_ = 0; this->_tao_decode (*(incoming.get ()), this->incoming_flag_); @@ -444,7 +440,7 @@ CORBA::NVList::evaluate (void) } CORBA::Boolean -CORBA::NVList::_lazy_has_arguments (void) const +CORBA::NVList::_lazy_has_arguments () const { if (this->incoming_ != 0) { diff --git a/TAO/tao/AnyTypeCode/NVList.h b/TAO/tao/AnyTypeCode/NVList.h index 001a1d7691d..989df82cd99 100644 --- a/TAO/tao/AnyTypeCode/NVList.h +++ b/TAO/tao/AnyTypeCode/NVList.h @@ -26,11 +26,7 @@ #include "ace/Unbounded_Queue.h" #include "ace/Thread_Mutex.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -84,21 +80,21 @@ namespace CORBA public: /// optional name - const char * name (void) const; + const char * name () const; /// return the value - Any_ptr value (void) const; + Any_ptr value () const; /// return the parameter mode flag - Flags flags (void) const; + Flags flags () const; // The pseudo object static methods.. static NamedValue * _duplicate (NamedValue *); - static NamedValue * _nil (void); + static NamedValue * _nil (); // = Reference counting. - ULong _incr_refcount (void); - ULong _decr_refcount (void); + ULong _incr_refcount (); + ULong _decr_refcount (); // Useful for template programming. typedef NamedValue_ptr _ptr_type; @@ -111,20 +107,16 @@ namespace CORBA * Protected destructor to enforce proper memory management * through the reference counting mechanism. */ - ~NamedValue (void); + ~NamedValue (); private: /// private constructor. Cannot be directly instantiated other than /// by its friends. - NamedValue (void); + NamedValue (); private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// holds the value Any any_; @@ -165,7 +157,7 @@ namespace CORBA public: /// return the current number of elements in the list - ULong count (void) const; + ULong count () const; /// add an element and just initialize the flags NamedValue_ptr add (Flags); @@ -193,11 +185,11 @@ namespace CORBA // The pseudo object static methods.. static NVList * _duplicate (NVList *); - static NVList * _nil (void); + static NVList * _nil (); // = Reference counting. - ULong _incr_refcount (void); - ULong _decr_refcount (void); + ULong _incr_refcount (); + ULong _decr_refcount (); // = TAO Extensions: @@ -223,14 +215,14 @@ namespace CORBA * re-alignment. * It returns ACE_CDR::MAX_ALIGNMENT to indicate errors. */ - ptrdiff_t _tao_target_alignment (void); + ptrdiff_t _tao_target_alignment (); /** * If this list is used by a DII request, this will tell us if * our CDR stream contains any marshaled arguments (needed for * GIOP 1.2). */ - Boolean _lazy_has_arguments (void) const; + Boolean _lazy_has_arguments () const; // Useful for template programming. typedef NVList_ptr _ptr_type; @@ -243,12 +235,12 @@ namespace CORBA * Protected destructor to enforce proper memory management * through the reference counting mechanism. */ - ~NVList (void); + ~NVList (); private: /// Constructor - cannot be instantiated directly other than /// through the CORBA::ORB::create_list method - NVList (void); + NVList (); /// Helper to increase the list size. This is used by all the add_ /// methods of the NVList class @@ -256,7 +248,7 @@ namespace CORBA /// Lazy evaluation routine to fill up the Anys in the NVList from /// the CDR stream. - void evaluate (void); + void evaluate (); private: /// Internal list of parameters stored as NamedValues @@ -266,11 +258,7 @@ namespace CORBA ULong max_; /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// Protects the incoming pointer. TAO_SYNCH_MUTEX lock_; diff --git a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp index d170907e390..a9d1940a8df 100644 --- a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp +++ b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp @@ -55,7 +55,7 @@ TAO_NVList_Adapter_Impl::create_named_value (CORBA::NamedValue_ptr &nv) } int -TAO_NVList_Adapter_Impl::Initializer (void) +TAO_NVList_Adapter_Impl::Initializer () { return ACE_Service_Config::process_directive (ace_svc_desc_TAO_NVList_Adapter_Impl); } diff --git a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h index aca4292e926..5ad1d79264e 100644 --- a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h +++ b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h @@ -36,7 +36,7 @@ public: virtual void create_named_value (CORBA::NamedValue_ptr &nv); /// Used to force the initialization of the NVList adapter - static int Initializer (void); + static int Initializer (); }; static int TAO_Requires_NVList_Adapter_Impl_Initializer = diff --git a/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h b/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h index 09b696a606c..6dd3b5e1fa0 100644 --- a/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h +++ b/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h @@ -66,10 +66,10 @@ namespace TAO public: /// No-op reference increment. - void add_ref (void) { } + void add_ref () { } /// No-op reference decrement. - void remove_ref (void) { } + void remove_ref () { } }; diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode.h b/TAO/tao/AnyTypeCode/Objref_TypeCode.h index 59e1abf4e3c..5a43981c0f2 100644 --- a/TAO/tao/AnyTypeCode/Objref_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Objref_TypeCode.h @@ -69,8 +69,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -86,9 +86,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; protected: /// Base attributes (@c id and @c name). diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp index 2502e71169d..9022c9ce878 100644 --- a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp @@ -38,13 +38,13 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::tao_marshal ( void TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -70,7 +70,7 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::equivalent_i ( CORBA::TypeCode_ptr TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy>::get_compact_typecode_i (void) const + TAO::Null_RefCount_Policy>::get_compact_typecode_i () const { TAO_TypeCodeFactory_Adapter * const adapter = ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance ( @@ -116,7 +116,7 @@ TAO::TypeCode::Objref<char const *, char const * TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -125,7 +125,7 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::id_i ( char const * TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::name_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h index 0887c074809..8166b24edbe 100644 --- a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h @@ -73,8 +73,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -90,9 +90,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; protected: /// Base attributes (@c id and @c name). diff --git a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h index 403529e8650..d8482d33599 100644 --- a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h @@ -143,7 +143,7 @@ namespace TAO { public: Reset (CORBA::ULong & flag) : flag_ (flag) { } - ~Reset (void) { this->flag_ = 0; } + ~Reset () { this->flag_ = 0; } private: CORBA::ULong & flag_; }; diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode.h b/TAO/tao/AnyTypeCode/Sequence_TypeCode.h index 9b621ac9bd3..154a4d41742 100644 --- a/TAO/tao/AnyTypeCode/Sequence_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode.h @@ -60,8 +60,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -76,9 +76,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; + virtual CORBA::TypeCode_ptr content_type_i () const; private: /// Element type of the sequence. diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp index 99f8e26c3bf..5ef1aec82db 100644 --- a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp @@ -48,13 +48,13 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, void TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -105,7 +105,7 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, CORBA::TypeCode_ptr TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { // Already compact since tk_sequence and tk_array TypeCodes have no // name or member names, meaning that we can simply call @@ -126,7 +126,7 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, CORBA::ULong TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, TAO::Null_RefCount_Policy>::length_i ( - void) const + ) const { return this->length_; } @@ -134,7 +134,7 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, CORBA::TypeCode_ptr TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, TAO::Null_RefCount_Policy>::content_type_i ( - void) const + ) const { return CORBA::TypeCode::_duplicate ( diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h index 2750c37ab74..11c76119774 100644 --- a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h @@ -65,8 +65,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -81,9 +81,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i ( void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; + virtual CORBA::TypeCode_ptr content_type_i ( ) const; private: /// Element type of the sequence. diff --git a/TAO/tao/AnyTypeCode/String_TypeCode.h b/TAO/tao/AnyTypeCode/String_TypeCode.h index 507ad7ba137..8ca53f95e6e 100644 --- a/TAO/tao/AnyTypeCode/String_TypeCode.h +++ b/TAO/tao/AnyTypeCode/String_TypeCode.h @@ -59,8 +59,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -75,8 +75,8 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; private: /// Length of the @c string. A length of zero indicates an diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp index 90b9344e529..83f28c3add9 100644 --- a/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp @@ -24,12 +24,12 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_marshal ( } void -TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_duplicate (void) +TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_duplicate () { } void -TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_release (void) +TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_release () { } @@ -57,7 +57,7 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::equivalent_i ( CORBA::TypeCode_ptr TAO::TypeCode::String<TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { // Already compact since tk_string and tk_wstring TypeCodes have no // name or member names, meaning that we can simply call @@ -71,7 +71,7 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::get_compact_typecode_i ( CORBA::ULong TAO::TypeCode::String<TAO::Null_RefCount_Policy>::length_i ( - void) const + ) const { return this->length_; } diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Static.h b/TAO/tao/AnyTypeCode/String_TypeCode_Static.h index 8fb262cb65d..388644be81b 100644 --- a/TAO/tao/AnyTypeCode/String_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/String_TypeCode_Static.h @@ -62,8 +62,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -78,8 +78,8 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; private: /// Length of the @c string. A length of zero indicates an diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode.h b/TAO/tao/AnyTypeCode/Struct_TypeCode.h index 3234062e624..4e5fb375edf 100644 --- a/TAO/tao/AnyTypeCode/Struct_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Struct_TypeCode.h @@ -72,8 +72,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Accessor for fields_ @@ -91,10 +91,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp index 06aadae7364..fb6853c958e 100644 --- a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp @@ -83,7 +83,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } @@ -92,7 +92,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -121,8 +121,7 @@ TAO::TypeCode::Struct<char const *, char const * const lhs_name = Traits<char const *>::get_string (lhs_field.name); - char const * const rhs_name = tc->member_name (i - ); + char const * const rhs_name = tc->member_name (i); if (ACE_OS::strcmp (lhs_name, rhs_name) != 0) return false; @@ -182,7 +181,7 @@ TAO::TypeCode::Struct<char const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { ACE_Array_Base<Struct_Field<CORBA::String_var, CORBA::TypeCode_var> > @@ -230,7 +229,7 @@ TAO::TypeCode::Struct<char const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -242,7 +241,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -254,7 +253,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::member_count_i (void) const + TAO::Null_RefCount_Policy>::member_count_i () const { return this->nfields_; } diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h index aa800a6b537..06bbd178928 100644 --- a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h @@ -78,8 +78,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -94,10 +94,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp b/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp index 3f25a04ed14..97662a84f02 100644 --- a/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp +++ b/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp @@ -7,7 +7,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::True_RefCount_Policy::~True_RefCount_Policy (void) +TAO::True_RefCount_Policy::~True_RefCount_Policy () { } diff --git a/TAO/tao/AnyTypeCode/True_RefCount_Policy.h b/TAO/tao/AnyTypeCode/True_RefCount_Policy.h index e1198f14cbe..257032630fc 100644 --- a/TAO/tao/AnyTypeCode/True_RefCount_Policy.h +++ b/TAO/tao/AnyTypeCode/True_RefCount_Policy.h @@ -25,11 +25,7 @@ #include "tao/orbconf.h" #include "ace/Thread_Mutex.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -75,7 +71,7 @@ namespace TAO public: /// Increase the reference count on this object. - void add_ref (void); + void add_ref (); /// Decrease the reference count on this object. /** @@ -83,7 +79,7 @@ namespace TAO * reference count drops to zero, call @c operator @c delete() * on this object. */ - void remove_ref (void); + void remove_ref (); protected: /// Constructor. @@ -91,7 +87,7 @@ namespace TAO * @note This constructor is protected since it not meant to be * instantiated/used as a standalone object. */ - True_RefCount_Policy (void); + True_RefCount_Policy (); /// Destructor. /** @@ -100,15 +96,11 @@ namespace TAO * zero, i.e. when @c remove_ref() calls @c operator * @c delete @c this. */ - virtual ~True_RefCount_Policy (void); + virtual ~True_RefCount_Policy (); private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; } // End namespace TAO diff --git a/TAO/tao/AnyTypeCode/TypeCode.cpp b/TAO/tao/AnyTypeCode/TypeCode.cpp index b8277a895cc..53108bd3b91 100644 --- a/TAO/tao/AnyTypeCode/TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/TypeCode.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -CORBA::TypeCode::~TypeCode (void) +CORBA::TypeCode::~TypeCode () { } @@ -113,19 +113,19 @@ CORBA::TypeCode::equivalent (TypeCode_ptr tc) const } char const * -CORBA::TypeCode::id_i (void) const +CORBA::TypeCode::id_i () const { throw ::CORBA::TypeCode::BadKind (); } char const * -CORBA::TypeCode::name_i (void) const +CORBA::TypeCode::name_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::ULong -CORBA::TypeCode::member_count_i (void) const +CORBA::TypeCode::member_count_i () const { throw ::CORBA::TypeCode::BadKind (); } @@ -149,37 +149,37 @@ CORBA::TypeCode::member_label_i (CORBA::ULong /* index */) const } CORBA::TypeCode_ptr -CORBA::TypeCode::discriminator_type_i (void) const +CORBA::TypeCode::discriminator_type_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::Long -CORBA::TypeCode::default_index_i (void) const +CORBA::TypeCode::default_index_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::ULong -CORBA::TypeCode::length_i (void) const +CORBA::TypeCode::length_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::TypeCode_ptr -CORBA::TypeCode::content_type_i (void) const +CORBA::TypeCode::content_type_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::UShort -CORBA::TypeCode::fixed_digits_i (void) const +CORBA::TypeCode::fixed_digits_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::UShort -CORBA::TypeCode::fixed_scale_i (void) const +CORBA::TypeCode::fixed_scale_i () const { throw ::CORBA::TypeCode::BadKind (); } @@ -191,20 +191,20 @@ CORBA::TypeCode::member_visibility_i (CORBA::ULong /* index */) const } CORBA::ValueModifier -CORBA::TypeCode::type_modifier_i (void) const +CORBA::TypeCode::type_modifier_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::TypeCode_ptr -CORBA::TypeCode::concrete_base_type_i (void) const +CORBA::TypeCode::concrete_base_type_i () const { throw ::CORBA::TypeCode::BadKind (); } // --------------------------------------------------------------- -CORBA::TypeCode::Bounds::Bounds (void) +CORBA::TypeCode::Bounds::Bounds () : CORBA::UserException ("IDL:omg.org/CORBA/TypeCode/Bounds:1.0", "Bounds") { @@ -217,7 +217,7 @@ CORBA::TypeCode::Bounds::_downcast (CORBA::Exception *ex) } CORBA::Exception * -CORBA::TypeCode::Bounds::_alloc (void) +CORBA::TypeCode::Bounds::_alloc () { CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::CORBA::TypeCode::Bounds, 0); @@ -225,7 +225,7 @@ CORBA::TypeCode::Bounds::_alloc (void) } CORBA::Exception * -CORBA::TypeCode::Bounds::_tao_duplicate (void) const +CORBA::TypeCode::Bounds::_tao_duplicate () const { CORBA::Exception *result; ACE_NEW_RETURN (result, @@ -235,7 +235,7 @@ CORBA::TypeCode::Bounds::_tao_duplicate (void) const } void -CORBA::TypeCode::Bounds::_raise (void) const +CORBA::TypeCode::Bounds::_raise () const { throw *this; } @@ -258,7 +258,7 @@ CORBA::TypeCode::Bounds::_tao_decode (TAO_InputCDR &) // **************************************************************** -CORBA::TypeCode::BadKind::BadKind (void) +CORBA::TypeCode::BadKind::BadKind () : CORBA::UserException ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0", "BadKind") { @@ -271,7 +271,7 @@ CORBA::TypeCode::BadKind::_downcast (CORBA::Exception *ex) } CORBA::Exception * -CORBA::TypeCode::BadKind::_tao_duplicate (void) const +CORBA::TypeCode::BadKind::_tao_duplicate () const { CORBA::Exception *result = 0; ACE_NEW_RETURN (result, @@ -281,7 +281,7 @@ CORBA::TypeCode::BadKind::_tao_duplicate (void) const } void -CORBA::TypeCode::BadKind::_raise (void) const +CORBA::TypeCode::BadKind::_raise () const { throw *this; } @@ -402,7 +402,7 @@ namespace TAO } CORBA::TypeCode_ptr - Objref_Traits<CORBA::TypeCode>::nil (void) + Objref_Traits<CORBA::TypeCode>::nil () { return CORBA::TypeCode::_nil (); } diff --git a/TAO/tao/AnyTypeCode/TypeCode.h b/TAO/tao/AnyTypeCode/TypeCode.h index d7701ab1c50..9a21085a314 100644 --- a/TAO/tao/AnyTypeCode/TypeCode.h +++ b/TAO/tao/AnyTypeCode/TypeCode.h @@ -70,14 +70,14 @@ namespace CORBA public: /// Constructor. - Bounds (void); + Bounds (); static Bounds * _downcast (CORBA::Exception * ex); - static CORBA::Exception * _alloc (void); + static CORBA::Exception * _alloc (); - virtual CORBA::Exception * _tao_duplicate (void) const; + virtual CORBA::Exception * _tao_duplicate () const; - virtual void _raise (void) const; + virtual void _raise () const; virtual void _tao_encode (TAO_OutputCDR & cdr) const; virtual void _tao_decode (TAO_InputCDR & cdr); @@ -96,14 +96,14 @@ namespace CORBA { public: - BadKind (void); + BadKind (); static BadKind * _downcast (CORBA::Exception * ex); - static CORBA::Exception * _alloc (void); + static CORBA::Exception * _alloc (); - virtual CORBA::Exception * _tao_duplicate (void) const; + virtual CORBA::Exception * _tao_duplicate () const; - virtual void _raise (void) const; + virtual void _raise () const; virtual void _tao_encode (TAO_OutputCDR & cdr) const; virtual void _tao_decode (TAO_InputCDR & cdr); @@ -123,7 +123,7 @@ namespace CORBA static CORBA::TypeCode_ptr _duplicate (CORBA::TypeCode_ptr tc); /// Returns a NULL typecode. - static CORBA::TypeCode_ptr _nil (void); + static CORBA::TypeCode_ptr _nil (); /** * @name @c CORBA::TypeCode Methods @@ -158,7 +158,7 @@ namespace CORBA Boolean equivalent (TypeCode_ptr tc) const; /// The kind of @c TypeCode. - TCKind kind (void) const; + TCKind kind () const; /// Return @c TypeCode stripped of optional @c name and /// @c member_name fields. @@ -180,7 +180,7 @@ namespace CORBA * the TAO_IDL compiler by invoking it with its "-Gt" * (i.e. enable optimized TypeCodes) command line option. */ - TypeCode_ptr get_compact_typecode (void) const; + TypeCode_ptr get_compact_typecode () const; /// The @c RepositoryId globally identifying the type. /** @@ -206,7 +206,7 @@ namespace CORBA * is required by the C++ mapping. In particular, ownership * is maintained by the @c TypeCode. */ - char const * id (void) const; + char const * id () const; /// The simple name identifying the type within its enclosing /// scope. @@ -233,7 +233,7 @@ namespace CORBA * behavior is required by the C++ mapping. In particular, * ownership is maintained by the @c TypeCode. */ - char const * name (void) const; + char const * name () const; /// The type member count. /** @@ -246,7 +246,7 @@ namespace CORBA * @li @c tk_except * @li @c tk_event */ - ULong member_count (void) const; + ULong member_count () const; /// The type member name. /** @@ -292,7 +292,7 @@ namespace CORBA * * @li @c tk_union */ - TypeCode_ptr discriminator_type (void) const; + TypeCode_ptr discriminator_type () const; /// The index of the default union member. /** @@ -300,7 +300,7 @@ namespace CORBA * * @li @c tk_union */ - Long default_index (void) const; + Long default_index () const; /// The length of the type. /** @@ -311,7 +311,7 @@ namespace CORBA * @li @c tk_sequence * @li @c tk_array */ - ULong length (void) const; + ULong length () const; /// The underlying content type. /** @@ -322,7 +322,7 @@ namespace CORBA * @li @c tk_value_box * @li @c tk_alias */ - TypeCode_ptr content_type (void) const; + TypeCode_ptr content_type () const; /// The number of significant digits. /** @@ -330,7 +330,7 @@ namespace CORBA * * @li @c tk_fixed */ - UShort fixed_digits (void) const; + UShort fixed_digits () const; /// The scale factor. /** @@ -338,7 +338,7 @@ namespace CORBA * * @li @c tk_fixed */ - UShort fixed_scale (void) const; + UShort fixed_scale () const; /// The @c Visibility of the @c valuetype or @c eventtype member /// corresponding to index @a index. @@ -358,7 +358,7 @@ namespace CORBA * @li @c tk_value * @li @c tk_event */ - ValueModifier type_modifier (void) const; + ValueModifier type_modifier () const; /// The @c TypeCode corresponding to the concrete base /// @c valuetype or @c eventtype. @@ -372,7 +372,7 @@ namespace CORBA * @c valuetype or @c eventtype. * @c CORBA::TypeCode::_nil() if no concrete base exists. */ - TypeCode_ptr concrete_base_type (void) const; + TypeCode_ptr concrete_base_type () const; //@} /// Marshal the @c TypeCode @c TCKind. @@ -411,10 +411,10 @@ namespace CORBA CORBA::ULong offset) const = 0; /// Increase the reference count on this @c TypeCode. - virtual void tao_duplicate (void) = 0; + virtual void tao_duplicate () = 0; /// Decrease the reference count on this object. - virtual void tao_release (void) = 0; + virtual void tao_release () = 0; /// Destruction callback for Anys. static void _tao_any_destructor (void * x); @@ -432,7 +432,7 @@ namespace CORBA * Protected destructor to enforce proper memory management * through the reference counting mechanism. */ - virtual ~TypeCode (void); + virtual ~TypeCode (); /** * @name @c TypeCode Template Methods @@ -453,23 +453,23 @@ namespace CORBA //@{ virtual Boolean equal_i (TypeCode_ptr tc) const = 0; virtual Boolean equivalent_i (TypeCode_ptr tc) const = 0; - virtual TypeCode_ptr get_compact_typecode_i (void) const = 0; + virtual TypeCode_ptr get_compact_typecode_i () const = 0; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual ULong member_count_i (void) const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual ULong member_count_i () const; virtual char const * member_name_i (ULong index) const; virtual TypeCode_ptr member_type_i (ULong index) const; virtual Any * member_label_i (ULong index) const; - virtual TypeCode_ptr discriminator_type_i (void) const; - virtual Long default_index_i (void) const; - virtual ULong length_i (void) const; - virtual TypeCode_ptr content_type_i (void) const; - virtual UShort fixed_digits_i (void) const; - virtual UShort fixed_scale_i (void) const; + virtual TypeCode_ptr discriminator_type_i () const; + virtual Long default_index_i () const; + virtual ULong length_i () const; + virtual TypeCode_ptr content_type_i () const; + virtual UShort fixed_digits_i () const; + virtual UShort fixed_scale_i () const; virtual Visibility member_visibility_i (ULong index) const; - virtual ValueModifier type_modifier_i (void) const; - virtual TypeCode_ptr concrete_base_type_i (void) const; + virtual ValueModifier type_modifier_i () const; + virtual TypeCode_ptr concrete_base_type_i () const; //@} private: @@ -549,7 +549,7 @@ namespace TAO { static ::CORBA::TypeCode_ptr duplicate (::CORBA::TypeCode_ptr); static void release (::CORBA::TypeCode_ptr); - static ::CORBA::TypeCode_ptr nil (void); + static ::CORBA::TypeCode_ptr nil (); static CORBA::Boolean marshal (::CORBA::TypeCode_ptr p, TAO_OutputCDR & cdr); }; diff --git a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h index 1616339555c..193de495ea3 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h @@ -51,11 +51,11 @@ namespace TAO Base_Attributes (char const * id); /// Get the @c RepositoryId globally identifying the type. - char const * id (void) const; + char const * id () const; /// Get the simple name identifying the type within its /// enclosing scope. - char const * name (void) const; + char const * name () const; /// Set the simple name identifying the type within its /// enclosing scope. diff --git a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp index b3d656e61cb..e80e1c653a4 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp +++ b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp @@ -44,7 +44,7 @@ namespace TAO struct TC_Info { /// Constructor. - TC_Info (void) : id (0), type () {} + TC_Info () : id (0), type () {} /// Repository ID. char const * id; diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp index 32f411cb9e5..f383c79659d 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp @@ -18,13 +18,11 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::~Case (void) template <typename StringType, typename TypeCodeType> bool TAO::TypeCode::Case<StringType, TypeCodeType>::equal (CORBA::ULong index, - CORBA::TypeCode_ptr tc - ) const + CORBA::TypeCode_ptr tc) const { // Check case names. char const * const lhs_name = this->name (); - char const * const rhs_name = tc->member_name (index - ); + char const * const rhs_name = tc->member_name (index); if (ACE_OS::strcmp (lhs_name, rhs_name) != 0) return false; @@ -32,49 +30,40 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::equal (CORBA::ULong index, // Check case TypeCodes. CORBA::TypeCode_ptr const lhs_tc = this->type (); CORBA::TypeCode_var const rhs_tc = - tc->member_type (index - ); + tc->member_type (index); CORBA::Boolean const equal_members = - lhs_tc->equal (rhs_tc.in () - ); + lhs_tc->equal (rhs_tc.in ()); if (!equal_members) return false; // Check case label. - return this->equal_label (index, - tc - ); + return this->equal_label (index, tc); } template <typename StringType, typename TypeCodeType> bool TAO::TypeCode::Case<StringType, TypeCodeType>::equivalent ( CORBA::ULong index, - CORBA::TypeCode_ptr tc - ) const + CORBA::TypeCode_ptr tc) const { // Member names are ignore when determining equivalence. // Check case TypeCodes. CORBA::TypeCode_ptr const lhs_tc = this->type (); CORBA::TypeCode_var const rhs_tc = - tc->member_type (index - ); + tc->member_type (index); CORBA::Boolean const equivalent_members = - lhs_tc->equivalent (rhs_tc.in () - ); + lhs_tc->equivalent (rhs_tc.in ()); if (!equivalent_members) return 0; // Check case label. // The label must be equal when determining equivalence, too. - return this->equal_label (index, - tc - ); + return this->equal_label (index, tc); } TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h index da96f1360cd..1e420b17592 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h @@ -60,20 +60,20 @@ namespace TAO /** * Constructor used when creating dynamic @c union @c TypeCodes. */ - Case (void); + Case (); /// Destructor. - virtual ~Case (void); + virtual ~Case (); /// Cloning/copying operation. - virtual Case * clone (void) const = 0; + virtual Case * clone () const = 0; /// Return the IDL @c union case label value embedded within a /// @c CORBA::Any. - virtual CORBA::Any * label (void) const = 0; + virtual CORBA::Any * label () const = 0; /// Get the name of the @c union case/member. - char const * name (void) const; + char const * name () const; /// Set the name of the @c union case/member. void name (char const * the_name); @@ -83,7 +83,7 @@ namespace TAO * @note The reference count is not manipulated by this method, * i.e., ownership is retained by this class. */ - CORBA::TypeCode_ptr type (void) const; + CORBA::TypeCode_ptr type () const; /// Set the @c CORBA::TypeCode of the @c union case/member. /** diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h index de360a3cdcb..b44435db95f 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h @@ -71,8 +71,8 @@ namespace TAO * @see @c TAO::TypeCode::Case */ //@{ - Case<StringType, TypeCodeType> * clone (void) const; - virtual CORBA::Any * label (void) const; + Case<StringType, TypeCodeType> * clone () const; + virtual CORBA::Any * label () const; virtual bool marshal_label (TAO_OutputCDR & cdr) const; virtual bool equal_label (CORBA::ULong index, CORBA::TypeCode_ptr tc) const; diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp b/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp index 86219d92c73..faf3d0745af 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp @@ -112,8 +112,7 @@ bool TAO::TypeCode::Case_T<DiscriminatorType, StringType, TypeCodeType>::equal_label (CORBA::ULong index, - CORBA::TypeCode_ptr tc - ) const + CORBA::TypeCode_ptr tc) const { CORBA::Any_var const any = tc->member_label (index); diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_T.h index d6ab4a1ab36..973edcffb32 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_T.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_T.h @@ -108,8 +108,8 @@ namespace TAO * @see @c TAO::TypeCode::Case */ //@{ - Case<StringType, TypeCodeType> * clone (void) const; - virtual CORBA::Any * label (void) const; + Case<StringType, TypeCodeType> * clone () const; + virtual CORBA::Any * label () const; virtual bool marshal_label (TAO_OutputCDR & cdr) const; virtual bool equal_label (CORBA::ULong index, CORBA::TypeCode_ptr tc) const; diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode.cpp b/TAO/tao/AnyTypeCode/Union_TypeCode.cpp index accfab8d9d9..6a6a6b145b9 100644 --- a/TAO/tao/AnyTypeCode/Union_TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/Union_TypeCode.cpp @@ -254,8 +254,7 @@ TAO::TypeCode::Union<StringType, // // the compact TypeCode. // tc_cases[i].name = empty_name; // tc_cases[i].type = -// this->cases_[i]->type ()->get_compact_typecode ( -// ); +// this->cases_[i]->type ()->get_compact_typecode (); // } // } diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode.h b/TAO/tao/AnyTypeCode/Union_TypeCode.h index 31855ed90a4..99cc7cf771a 100644 --- a/TAO/tao/AnyTypeCode/Union_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Union_TypeCode.h @@ -76,12 +76,12 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Accessor for cases_ - const CaseArrayType& cases(void) const; + const CaseArrayType& cases() const; protected: /** @@ -94,15 +94,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Any * member_label_i (CORBA::ULong index) const; - virtual CORBA::TypeCode_ptr discriminator_type_i (void) const; - virtual CORBA::Long default_index_i (void) const; + virtual CORBA::TypeCode_ptr discriminator_type_i () const; + virtual CORBA::Long default_index_i () const; //@} protected: diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp index b3bb39e4aac..d702bec5bfc 100644 --- a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp @@ -78,7 +78,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } @@ -87,7 +87,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -198,7 +198,7 @@ TAO::TypeCode::Union<char const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { // typedef ACE::Value_Ptr<TAO::TypeCode::Case<CORBA::String_var, // CORBA::TypeCode_var> > elem_type; @@ -218,8 +218,7 @@ TAO::TypeCode::Union<char const *, // // the compact TypeCode. // tc_cases[i].name = empty_name; // tc_cases[i].type = -// this->cases_[i]->type ()->get_compact_typecode ( -// ); +// this->cases_[i]->type ()->get_compact_typecode (); // } // } @@ -254,7 +253,7 @@ TAO::TypeCode::Union<char const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -266,7 +265,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -278,7 +277,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::member_count_i (void) const + TAO::Null_RefCount_Policy>::member_count_i () const { return this->ncases_; } @@ -353,7 +352,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::discriminator_type_i (void) const + TAO::Null_RefCount_Policy>::discriminator_type_i () const { return CORBA::TypeCode::_duplicate ( @@ -365,7 +364,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::default_index_i (void) const + TAO::Null_RefCount_Policy>::default_index_i () const { return this->default_index_; } diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h index 180747f1428..e624fcbece0 100644 --- a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h @@ -80,8 +80,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -95,15 +95,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Any * member_label_i (CORBA::ULong index) const; - virtual CORBA::TypeCode_ptr discriminator_type_i (void) const; - virtual CORBA::Long default_index_i (void) const; + virtual CORBA::TypeCode_ptr discriminator_type_i () const; + virtual CORBA::Long default_index_i () const; //@} private: diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode.cpp b/TAO/tao/AnyTypeCode/Value_TypeCode.cpp index a720506dc0b..e19f8a95c33 100644 --- a/TAO/tao/AnyTypeCode/Value_TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/Value_TypeCode.cpp @@ -162,8 +162,7 @@ TAO::TypeCode::Value<StringType, tc->concrete_base_type (); CORBA::Boolean const equal_concrete_base_types = - this->equal (rhs_concrete_base_type.in () - ); + this->equal (rhs_concrete_base_type.in ()); if (!equal_concrete_base_types) return false; @@ -180,9 +179,7 @@ TAO::TypeCode::Value<StringType, this->fields_[i]; CORBA::Visibility const lhs_visibility = lhs_field.visibility; - CORBA::Visibility const rhs_visibility = - tc->member_visibility (i - ); + CORBA::Visibility const rhs_visibility = tc->member_visibility (i); if (lhs_visibility != rhs_visibility) return false; @@ -262,8 +259,7 @@ TAO::TypeCode::Value<StringType, tc->member_type (i); CORBA::Boolean const equiv_types = - lhs_tc->equivalent (rhs_tc.in () - ); + lhs_tc->equivalent (rhs_tc.in ()); if (!equiv_types) return false; @@ -300,8 +296,7 @@ TAO::TypeCode::Value<StringType, tc_fields[i].name = empty_name; tc_fields[i].type = Traits<StringType>::get_typecode ( - this->fields_[i].type)->get_compact_typecode ( - ); + this->fields_[i].type)->get_compact_typecode (); tc_fields[i].visibility = this->fields_[i].visibility; } } diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode.h b/TAO/tao/AnyTypeCode/Value_TypeCode.h index c454d0cbe1a..836403fd08d 100644 --- a/TAO/tao/AnyTypeCode/Value_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Value_TypeCode.h @@ -76,12 +76,12 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Accessor for concrete_base_ - const TypeCodeType& concrete_base(void) const; + const TypeCodeType& concrete_base() const; /// Accessor for fields_ const FieldArrayType& fields() const; @@ -98,15 +98,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Visibility member_visibility_i (CORBA::ULong index) const; - virtual CORBA::ValueModifier type_modifier_i (void) const; - virtual CORBA::TypeCode_ptr concrete_base_type_i (void) const; + virtual CORBA::ValueModifier type_modifier_i () const; + virtual CORBA::TypeCode_ptr concrete_base_type_i () const; //@} protected: diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp index 6bff91a30bc..54d40980a78 100644 --- a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp @@ -87,7 +87,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } @@ -96,7 +96,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -224,7 +224,7 @@ TAO::TypeCode::Value<char const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { ACE_Array_Base<Value_Field<CORBA::String_var, CORBA::TypeCode_var> > tc_fields (this->nfields_); @@ -244,8 +244,7 @@ TAO::TypeCode::Value<char const *, tc_fields[i].name = empty_name; tc_fields[i].type = Traits<char const *>::get_typecode ( - this->fields_[i].type)->get_compact_typecode ( - ); + this->fields_[i].type)->get_compact_typecode (); tc_fields[i].visibility = this->fields_[i].visibility; } } @@ -276,7 +275,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::id_i (void) const + TAO::Null_RefCount_Policy>::id_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -288,7 +287,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -300,7 +299,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::member_count_i (void) const + TAO::Null_RefCount_Policy>::member_count_i () const { return this->nfields_; } @@ -356,7 +355,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::type_modifier_i (void) const + TAO::Null_RefCount_Policy>::type_modifier_i () const { return this->type_modifier_; } @@ -367,7 +366,7 @@ TAO::TypeCode::Value<char const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::concrete_base_type_i ( - void) const + ) const { return CORBA::TypeCode::_duplicate ( diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h index b159728edb8..e269498b648 100644 --- a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h @@ -79,8 +79,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -95,15 +95,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Visibility member_visibility_i (CORBA::ULong index) const; - virtual CORBA::ValueModifier type_modifier_i (void) const; - virtual CORBA::TypeCode_ptr concrete_base_type_i (void) const; + virtual CORBA::ValueModifier type_modifier_i () const; + virtual CORBA::TypeCode_ptr concrete_base_type_i () const; //@} private: diff --git a/TAO/tao/AnyTypeCode/append.cpp b/TAO/tao/AnyTypeCode/append.cpp index 0ae018b16e5..69d88d32aba 100644 --- a/TAO/tao/AnyTypeCode/append.cpp +++ b/TAO/tao/AnyTypeCode/append.cpp @@ -586,8 +586,7 @@ TAO_Marshal_Union::append (CORBA::TypeCode_ptr tc, tc->member_type (current_member); return TAO_Marshal_Object::perform_append (member_tc.in (), src, - dest - ); + dest); } TAO::traverse_status @@ -809,8 +808,7 @@ TAO_Marshal_Sequence::append (CORBA::TypeCode_ptr tc, { retval = TAO_Marshal_Object::perform_append (tc2.in (), src, - dest - ); + dest); } break; }// end of switch @@ -996,8 +994,7 @@ TAO_Marshal_Array::append (CORBA::TypeCode_ptr tc, { retval = TAO_Marshal_Object::perform_append (tc2.in (), src, - dest - ); + dest); } break; }// end of switch @@ -1050,8 +1047,7 @@ TAO_Marshal_Alias::append (CORBA::TypeCode_ptr tc, TAO::traverse_status TAO_Marshal_Except::append (CORBA::TypeCode_ptr tc, TAO_InputCDR *src, - TAO_OutputCDR *dest - ) + TAO_OutputCDR *dest) { TAO::traverse_status retval = TAO::TRAVERSE_CONTINUE; @@ -1092,8 +1088,7 @@ TAO_Marshal_Except::append (CORBA::TypeCode_ptr tc, TAO::traverse_status TAO_Marshal_WString::append (CORBA::TypeCode_ptr, TAO_InputCDR *src, - TAO_OutputCDR *dest - ) + TAO_OutputCDR *dest) { CORBA::Boolean continue_append = true; @@ -1120,8 +1115,7 @@ TAO_Marshal_WString::append (CORBA::TypeCode_ptr, TAO::traverse_status TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc, TAO_InputCDR *src, - TAO_OutputCDR *dest - ) + TAO_OutputCDR *dest) { TAO::traverse_status retval = TAO::TRAVERSE_CONTINUE; @@ -1181,8 +1175,7 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc, param = tc->content_type (); retval = TAO_Marshal_Object::perform_append (param.in (), src, - dest - ); + dest); } else // tc->kind () must be tk_value or tk_event { @@ -1192,8 +1185,7 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc, { retval = this->append (param.in (), src, - dest - ); + dest); } if (retval == TAO::TRAVERSE_CONTINUE) @@ -1212,8 +1204,7 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc, retval = TAO_Marshal_Object::perform_append (param.in (), src, - dest - ); + dest); } } } |