diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-04-28 08:38:40 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-04-28 08:38:40 +0200 |
commit | 68095aab7d02d5cf3849c841006db5aea395ab20 (patch) | |
tree | 6c6d61b3e22e398a95f7e9fb404f53f42af30d11 /cpp | |
parent | 04a1bebeb028bd49ef946bbe64b5556b473a7a0a (diff) |
Single-parameter constructors should be marked explicit.
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/helloworld/greeter_async_client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/helloworld/greeter_async_client.cc b/cpp/helloworld/greeter_async_client.cc index f94663fdd6..5fa6ec6edb 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<ChannelInterface> channel) + explicit GreeterClient(std::shared_ptr<ChannelInterface> channel) : stub_(Greeter::NewStub(channel)) {} std::string SayHello(const std::string& user) { |