Fix/suppress system/security 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: I4ed5aea36fcdcd8dbda9a4be9607c5af606f2a08
diff --git a/keystore/keymaster_worker.cpp b/keystore/keymaster_worker.cpp
index fd07e86..d2175b8 100644
--- a/keystore/keymaster_worker.cpp
+++ b/keystore/keymaster_worker.cpp
@@ -535,7 +535,7 @@
std::function<void()> f_;
public:
- Finalize(std::function<void()> f) : f_(f) {}
+ explicit Finalize(std::function<void()> f) : f_(f) {}
~Finalize() {
if (f_) f_();
}