diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-20 13:48:02 -0800 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2019-01-09 19:50:30 +0000 |
commit | f21b0b6d3668dcbe25b7e4c00c38c68964850b4c (patch) | |
tree | 45c4bfe327bb132af75f75842b485731eea85446 /libs/hwui/utils | |
parent | 9fbe48172748ce030e58c53cbefa3f3ecfbdf525 (diff) |
Fix/suppress hwui google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters
Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I8c6ebb99679b0a71251024d70a13f8164e67db5e
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r-- | libs/hwui/utils/LinearAllocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/utils/LinearAllocator.h b/libs/hwui/utils/LinearAllocator.h index 03f685e8aca8..16cf52f646b1 100644 --- a/libs/hwui/utils/LinearAllocator.h +++ b/libs/hwui/utils/LinearAllocator.h @@ -168,7 +168,7 @@ public: }; // enable allocators to be constructed from other templated types template <class U> - LinearStdAllocator(const LinearStdAllocator<U>& other) // NOLINT(implicit) + LinearStdAllocator(const LinearStdAllocator<U>& other) // NOLINT(google-explicit-constructor) : linearAllocator(other.linearAllocator) {} T* allocate(size_t num, const void* = 0) { |