commit | 11b95b9c3a946089d52f205838c05373c954b16e | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Mon Apr 25 14:17:14 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Apr 25 14:17:14 2016 -0700 |
tree | 45e21b26f3f59f18f711218b4ca09c74379593b8 | |
parent | 0add9c5b35041af781e1433ae0790167e7b3277f [diff] |
Fix google-explicit-constructor warnings. Bug: 28341362 Change-Id: I9f388006f5593b9f224e98e93deca7da35c5618a
diff --git a/tests/binder/benchmarks/binderAddInts.cpp b/tests/binder/benchmarks/binderAddInts.cpp index ff7ea07..f061f7c 100644 --- a/tests/binder/benchmarks/binderAddInts.cpp +++ b/tests/binder/benchmarks/binderAddInts.cpp
@@ -73,7 +73,7 @@ class AddIntsService : public BBinder { public: - AddIntsService(int cpu = unbound); + explicit AddIntsService(int cpu = unbound); virtual ~AddIntsService() {} enum command {
diff --git a/tests/fstest/recovery_test.cpp b/tests/fstest/recovery_test.cpp index b93de83..02c7e8f 100644 --- a/tests/fstest/recovery_test.cpp +++ b/tests/fstest/recovery_test.cpp
@@ -48,7 +48,7 @@ class DataFileVerifier { public: - DataFileVerifier(const char* file_name) { + explicit DataFileVerifier(const char* file_name) { strncpy(test_file_, file_name, FILENAME_MAX); }