From c81de6f84f1cea94ccdaffb23d9c4a1505ba0385 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 29 Apr 2016 14:42:01 -0700 Subject: [PATCH] Fix google-explicit-constructor warnings. Bug: 28341362 Change-Id: I30adc5ba8e977aa6626d12f0981fa580d1425a4e --- Keymaster.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Keymaster.cpp b/Keymaster.cpp index d271b6a..c43613e 100644 --- a/Keymaster.cpp +++ b/Keymaster.cpp @@ -53,7 +53,7 @@ class IKeymasterDevice { template class KeymasterDevice : public IKeymasterDevice { public: - KeymasterDevice(T* d) : mDevice{d} {} + explicit KeymasterDevice(T* d) : mDevice{d} {} keymaster_error_t generate_key(const keymaster_key_param_set_t* params, keymaster_key_blob_t* key_blob) const override final { return mDevice->generate_key(mDevice, params, key_blob, nullptr); @@ -86,7 +86,7 @@ template class KeymasterDevice : public IKeymasterDevice { class Keymaster1Device : public KeymasterDevice { public: - Keymaster1Device(keymaster1_device_t* d) : KeymasterDevice{d} {} + explicit Keymaster1Device(keymaster1_device_t* d) : KeymasterDevice{d} {} ~Keymaster1Device() override final { keymaster1_close(mDevice); } keymaster_error_t finish(keymaster_operation_handle_t operation_handle, const keymaster_key_param_set_t* in_params, @@ -99,7 +99,7 @@ class Keymaster1Device : public KeymasterDevice { class Keymaster2Device : public KeymasterDevice { public: - Keymaster2Device(keymaster2_device_t* d) : KeymasterDevice{d} {} + explicit Keymaster2Device(keymaster2_device_t* d) : KeymasterDevice{d} {} ~Keymaster2Device() override final { keymaster2_close(mDevice); } keymaster_error_t finish(keymaster_operation_handle_t operation_handle, const keymaster_key_param_set_t* in_params,