diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-04-29 12:41:32 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-04-29 12:41:32 +0200 |
commit | 1720f78a38854ae2808f17eaf446f84f925ceefd (patch) | |
tree | e9f5d6ed1994ef247583c93df8c595cd17376524 /TAO/tao/DynamicInterface/Context.h | |
parent | 6f3e147d990d4252f251dde60e5730e1c3009dfe (diff) | |
download | ATCD-1720f78a38854ae2808f17eaf446f84f925ceefd.tar.gz |
Make use of delete/default
* TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp:
* TAO/tao/DynamicAny/DynAnyFactory.h:
* TAO/tao/DynamicInterface/Context.cpp:
* TAO/tao/DynamicInterface/Context.h:
* TAO/tao/DynamicInterface/Context.inl:
* TAO/tao/DynamicInterface/DII_Reply_Dispatcher.cpp:
* TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h:
* TAO/tao/Invocation_Adapter.h:
Diffstat (limited to 'TAO/tao/DynamicInterface/Context.h')
-rw-r--r-- | TAO/tao/DynamicInterface/Context.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/TAO/tao/DynamicInterface/Context.h b/TAO/tao/DynamicInterface/Context.h index 39230031607..3bbc17f3bef 100644 --- a/TAO/tao/DynamicInterface/Context.h +++ b/TAO/tao/DynamicInterface/Context.h @@ -69,9 +69,8 @@ namespace CORBA class TAO_DynamicInterface_Export Context { public: - Context (void); - - ~Context (void); + Context () = default; + ~Context () = default; // = Pseudo-object methods static Context *_duplicate (Context*); @@ -109,7 +108,7 @@ namespace CORBA private: /// Reference counter. - std::atomic<uint32_t> refcount_; + std::atomic<uint32_t> refcount_ { 1 }; }; /** @@ -123,7 +122,7 @@ namespace CORBA { public: /// Constructor. - ContextList (void); + ContextList () = default; /// Constructor - initialize given a length and an array of /// strings. @@ -169,9 +168,8 @@ namespace CORBA typedef CORBA::ContextList_out _out_type; private: - // Not allowed. - ContextList (const ContextList &); - ContextList &operator= (const ContextList &); + ContextList (const ContextList &) = delete; + ContextList &operator= (const ContextList &) = delete; /// Reference counter. std::atomic<uint32_t> refcount_; |