Skip to content
Snippets Groups Projects
Commit 4f39791b authored by Brad King's avatar Brad King
Browse files

Glob: Add explicit assignment operator to Message member

 Glob.hxx:58:5: warning: definition of implicit copy assignment operator
  for 'Message' is deprecated because it has a user-declared copy
  constructor [-Wdeprecated]
     Message(const Message& msg) :
     ^

Change-Id: Id6d28d9e5b4ed556556a5add10881f1bcd4525b7
parent 1ea01a46
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,12 @@ public:
type(msg.type),
content(msg.content)
{}
Message& operator=(Message const& msg)
{
this->type = msg.type;
this->content = msg.content;
return *this;
}
};
typedef kwsys_stl::vector<Message> GlobMessages;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment