diff options
| author | Chih-Hung Hsieh <chh@google.com> | 2016-07-12 13:50:44 -0700 |
|---|---|---|
| committer | Chih-Hung Hsieh <chh@google.com> | 2016-07-26 11:26:01 -0700 |
| commit | 034c475931e8e4da54b499c0056121490f029865 (patch) | |
| tree | d07eac290b1d3744cd60ebe76486e0c2c937ea3d /libutils/tests/StrongPointer_test.cpp | |
| parent | 02ccdc5db9bb39488a3fe22a907b3211c3a464b9 (diff) | |
| download | system_core-034c475931e8e4da54b499c0056121490f029865.tar.gz system_core-034c475931e8e4da54b499c0056121490f029865.tar.bz2 system_core-034c475931e8e4da54b499c0056121490f029865.zip | |
Fix google-explicit-constructor warnings in system/core.
* Declare explicit conversion constructors.
* Add NOLINT for implicit conversion constructors.
* Fix also some misaligned indendations.
Bug: 28341362
Change-Id: Idf911f35923b408d92285cc1a053f382ba08c63e
Test: build with clang-tidy
Diffstat (limited to 'libutils/tests/StrongPointer_test.cpp')
| -rw-r--r-- | libutils/tests/StrongPointer_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libutils/tests/StrongPointer_test.cpp b/libutils/tests/StrongPointer_test.cpp index f46d6d140..323a6f20a 100644 --- a/libutils/tests/StrongPointer_test.cpp +++ b/libutils/tests/StrongPointer_test.cpp @@ -23,7 +23,7 @@ using namespace android; class Foo : public LightRefBase<Foo> { public: - Foo(bool* deleted_check) : mDeleted(deleted_check) { + explicit Foo(bool* deleted_check) : mDeleted(deleted_check) { *mDeleted = false; } |
