Fix google-explicit-constructor warnings in keystore.
Declare explicit conversion constructors.
Bug: 28341362
Change-Id: Ibd0d6b7ec63ccb8f910e9da15771ff4d0031f4c4
Test: build with clang-tidy
diff --git a/keystore/operation.h b/keystore/operation.h
index eb16257..083ec29 100644
--- a/keystore/operation.h
+++ b/keystore/operation.h
@@ -46,7 +46,7 @@
*/
class OperationMap {
public:
- OperationMap(IBinder::DeathRecipient* deathRecipient);
+ explicit OperationMap(IBinder::DeathRecipient* deathRecipient);
sp<IBinder> addOperation(keymaster_operation_handle_t handle, uint64_t keyid,
keymaster_purpose_t purpose, const keymaster2_device_t* dev,
sp<IBinder> appToken, keymaster_key_characteristics_t* characteristics,