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) {