]> granicus.if.org Git - clang/commitdiff
Make the constructor explicit.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 30 Jun 2010 08:49:12 +0000 (08:49 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 30 Jun 2010 08:49:12 +0000 (08:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107265 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclFriend.h

index 85085c3080b5e723c7733ebdccf1b8e31bd646b4..2807d16379ae9cc9473151921a01aae6accc014b 100644 (file)
@@ -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,