Skip to content
Snippets Groups Projects
Commit 6090d36b authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Brad King
Browse files

Glob: Use the default copy constructor and assignment operator

No need to write ones that do what the default one does, makes sure that
if a new field is introduced it won't be forgotten in any of the two.
parent 44676809
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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