Skip to content
Snippets Groups Projects
Commit e270ce9f authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'use_default'


6090d36b Glob: Use the default copy constructor and assignment operator

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !126
parents 282714ce 6090d36b
Branches master
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