From 0dfec203ee3b024ab9ff3d7d5c40c2cdf2db81e2 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 6 May 2016 10:36:13 -0700 Subject: [PATCH] Fix google-explicit-constructor warnings. Bug: 28341362 Change-Id: Idadc9ad22fdd9d014c8fe0522c89b6ec9d05ae98 --- tests/binder_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/binder_test.cpp b/tests/binder_test.cpp index dcaf2302..1018e00e 100644 --- a/tests/binder_test.cpp +++ b/tests/binder_test.cpp @@ -105,7 +105,7 @@ char BinderTest::sDstStr[INET6_ADDRSTRLEN]; class TimedOperation : public Stopwatch { public: - TimedOperation(std::string name): mName(name) {} + explicit TimedOperation(const std::string &name): mName(name) {} virtual ~TimedOperation() { fprintf(stderr, " %s: %6.1f ms\n", mName.c_str(), timeTaken()); }