From 0ab5de16a47d64ba7cc8ca2e31b679daeae963fe Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 30 Jun 2010 08:49:12 +0000 Subject: [PATCH] Make the constructor explicit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107265 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DeclFriend.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/clang/AST/DeclFriend.h b/include/clang/AST/DeclFriend.h index 85085c3080..2807d16379 100644 --- a/include/clang/AST/DeclFriend.h +++ b/include/clang/AST/DeclFriend.h @@ -59,7 +59,8 @@ private: FriendLoc(FriendL) { } - FriendDecl(EmptyShell Empty) : Decl(Decl::Friend, Empty), NextFriend(0) { } + explicit FriendDecl(EmptyShell Empty) + : Decl(Decl::Friend, Empty), NextFriend(0) { } public: static FriendDecl *Create(ASTContext &C, DeclContext *DC, -- 2.40.0