Przeglądaj źródła

Merge branch 'upstream-KWSys' into update-kwsys

* upstream-KWSys:
  KWSys 2019-02-14 (e270ce9f)
Brad King 7 lat temu
rodzic
commit
f510aafbfc
2 zmienionych plików z 4 dodań i 12 usunięć
  1. 3 11
      Source/kwsys/Glob.hxx.in
  2. 1 1
      Source/kwsys/hashtable.hxx.in

+ 3 - 11
Source/kwsys/Glob.hxx.in

@@ -41,17 +41,9 @@ public:
       , content(c)
     {
     }
-    Message(const Message& msg)
-      : type(msg.type)
-      , content(msg.content)
-    {
-    }
-    Message& operator=(Message const& msg)
-    {
-      this->type = msg.type;
-      this->content = msg.content;
-      return *this;
-    }
+    ~Message() = default;
+    Message(const Message& msg) = default;
+    Message& operator=(Message const& msg) = default;
   };
 
   typedef std::vector<Message> GlobMessages;

+ 1 - 1
Source/kwsys/hashtable.hxx.in

@@ -73,7 +73,7 @@ struct _Hashtable_node
   void public_method_to_quiet_warning_about_all_methods_private();
 
 private:
-  void operator=(_Hashtable_node<_Val> const&); // poison node assignment
+  void operator=(_Hashtable_node<_Val> const&) = delete;
 };
 
 template <class _Val, class _Key, class _HashFcn, class _ExtractKey,