mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
KWSys 2019-02-14 (e270ce9f)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit e270ce9fc60971006e934e9d53d11be5f85efc39 (master).
Upstream Shortlog
-----------------
Albert Astals Cid (2):
95ced423 hashtable: delete assignment operator instead of poisoning it
6090d36b Glob: Use the default copy constructor and assignment operator
This commit is contained in:
committed by
Brad King
parent
f3999a21c8
commit
a930de85d8
14
Glob.hxx.in
14
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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user