Merge pull request #189 from nicolasnoble/lint-roller

Single-parameter constructors should be marked explicit.
pull/3109/head
David Klempner 10 years ago
commit 4305860d21
  1. 2
      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) {

Loading…
Cancel
Save