aboutsummaryrefslogtreecommitdiffhomepage
path: root/cpp
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-28 08:38:40 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-28 08:38:40 +0200
commit68095aab7d02d5cf3849c841006db5aea395ab20 (patch)
tree6c6d61b3e22e398a95f7e9fb404f53f42af30d11 /cpp
parent04a1bebeb028bd49ef946bbe64b5556b473a7a0a (diff)
Single-parameter constructors should be marked explicit.
Diffstat (limited to 'cpp')
-rw-r--r--cpp/helloworld/greeter_async_client.cc2
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) {