diff options
author | Chih-Hung Hsieh <chh@google.com> | 2019-01-02 10:59:48 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2019-01-02 11:04:05 -0800 |
commit | 770032ddfa31f6ed18e6ec85013b7939cd291eb0 (patch) | |
tree | 28dc26ae8a6b3623e79d1bb2b19fd5362477843c /tests/grp_pwd_file_test.cpp | |
parent | 7bd54ade8d12762ef6bdb0096f3838261f14eee5 (diff) |
Fix/suppress bionic google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Id1ad0327c1b8c6f094bcbb3ae599bc1f716b3f2f
Diffstat (limited to 'tests/grp_pwd_file_test.cpp')
-rw-r--r-- | tests/grp_pwd_file_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/grp_pwd_file_test.cpp b/tests/grp_pwd_file_test.cpp index 2cbad62ad..66866fb48 100644 --- a/tests/grp_pwd_file_test.cpp +++ b/tests/grp_pwd_file_test.cpp @@ -26,7 +26,7 @@ template <typename T> class FileUnmapper { public: - FileUnmapper(T& file) : file_(file) { + explicit FileUnmapper(T& file) : file_(file) { } ~FileUnmapper() { file_.Unmap(); |