Add "explicit".

llvm-svn: 226205
This commit is contained in:
Rui Ueyama 2015-01-15 21:05:00 +00:00
parent e6c5dcf512
commit 8aa4aa4fd5
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace lld {
class Node {
public:
enum class Kind { File, GroupEnd };
Node(Kind type) : _kind(type) {}
explicit Node(Kind type) : _kind(type) {}
virtual ~Node() {}
virtual Kind kind() const { return _kind; }
@ -41,7 +41,7 @@ private:
// files between the corresponding --start-group and this marker.
class GroupEnd : public Node {
public:
GroupEnd(int size) : Node(Kind::GroupEnd), _size(size) {}
explicit GroupEnd(int size) : Node(Kind::GroupEnd), _size(size) {}
int getSize() const { return _size; }