summaryrefslogtreecommitdiff
path: root/ACE/ace
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-09-28 09:53:49 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-09-28 09:53:49 +0200
commit4ceea8a4636a2b171c890abf651f743e70b414e7 (patch)
tree4cd544a56646b3062e7af37dc8a22e7f93dd5e4b /ACE/ace
parent9b8796fa89a7d2da4b1f682253be06d7ab1f8dbe (diff)
downloadATCD-4ceea8a4636a2b171c890abf651f743e70b414e7.tar.gz
Use delete/default
* ACE/ace/Node.cpp: * ACE/ace/Node.h:
Diffstat (limited to 'ACE/ace')
-rw-r--r--ACE/ace/Node.cpp5
-rw-r--r--ACE/ace/Node.h5
2 files changed, 2 insertions, 8 deletions
diff --git a/ACE/ace/Node.cpp b/ACE/ace/Node.cpp
index b23dd0a9462..0e9e5beaa6e 100644
--- a/ACE/ace/Node.cpp
+++ b/ACE/ace/Node.cpp
@@ -16,11 +16,6 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE_Tcc(ACE_Node)
template <class T, class C>
-ACE_Node<T, C>::~ACE_Node ()
-{
-}
-
-template <class T, class C>
ACE_Node<T, C>::ACE_Node (const T &i, ACE_Node<T, C> *n)
: next_ (n),
item_ (i)
diff --git a/ACE/ace/Node.h b/ACE/ace/Node.h
index d81e189d1f2..bf38722feae 100644
--- a/ACE/ace/Node.h
+++ b/ACE/ace/Node.h
@@ -49,8 +49,7 @@ public:
friend class ACE_Unbounded_Stack<T>;
friend class ACE_Unbounded_Stack_Iterator<T>;
- /// This isn't necessary, but it keeps some compilers happy.
- ~ACE_Node ();
+ ~ACE_Node () = default;
ACE_ALLOC_HOOK_DECLARE;
@@ -60,7 +59,7 @@ private:
ACE_Node (const ACE_Node<T, C> &n);
private:
/// Not possible
- void operator= (const ACE_Node<T, C> &);
+ void operator= (const ACE_Node<T, C> &) = delete;
private:
/// Pointer to next element in the list of ACE_Nodes.