Commit 590a1dad authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix google-explicit-constructor warnings in keystore."

parents 8f8ed7f3 d7791be0
......@@ -41,7 +41,7 @@ time_t clock_gettime_raw();
*/
class AuthTokenTable {
public:
AuthTokenTable(size_t max_entries = 32, time_t (*clock_function)() = clock_gettime_raw)
explicit AuthTokenTable(size_t max_entries = 32, time_t (*clock_function)() = clock_gettime_raw)
: max_entries_(max_entries), clock_function_(clock_function) {}
enum Error {
......
......@@ -78,7 +78,7 @@ class Blob {
public:
Blob(const uint8_t* value, size_t valueLength, const uint8_t* info, uint8_t infoLength,
BlobType type);
Blob(blob b);
explicit Blob(blob b);
Blob();
......
......@@ -29,7 +29,7 @@ namespace android {
class KeyStoreService : public BnKeystoreService, public IBinder::DeathRecipient {
public:
KeyStoreService(KeyStore* keyStore) : mKeyStore(keyStore), mOperationMap(this) {}
explicit KeyStoreService(KeyStore* keyStore) : mKeyStore(keyStore), mOperationMap(this) {}
void binderDied(const wp<IBinder>& who);
......
......@@ -46,7 +46,7 @@ typedef std::unique_ptr<keymaster_key_characteristics_t, keymaster_key_character
*/
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,
......
......@@ -29,7 +29,7 @@
class UserState {
public:
UserState(uid_t userId);
explicit UserState(uid_t userId);
~UserState();
bool initialize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment