From 68095aab7d02d5cf3849c841006db5aea395ab20 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 28 Apr 2015 08:38:40 +0200 Subject: [PATCH] Single-parameter constructors should be marked explicit. --- cpp/helloworld/greeter_async_client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/helloworld/greeter_async_client.cc b/cpp/helloworld/greeter_async_client.cc index f94663fdd66..5fa6ec6edbf 100644 --- a/cpp/helloworld/greeter_async_client.cc +++ b/cpp/helloworld/greeter_async_client.cc @@ -59,7 +59,7 @@ using helloworld::Greeter; class GreeterClient { public: - GreeterClient(std::shared_ptr channel) + explicit GreeterClient(std::shared_ptr channel) : stub_(Greeter::NewStub(channel)) {} std::string SayHello(const std::string& user) {