From 1cc82ce95c6f42c313744553430c7a6eb3edbf45 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Mon, 25 Apr 2016 13:49:46 -0700 Subject: [PATCH] Fix google-explicit-constructor warnings. Bug: 28341362 Change-Id: I2cf746fd07addc6e6c22e98e2a5bb8a8ce47c885 --- logcat/tests/logcat_benchmark.cpp | 2 +- logd/LogBuffer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logcat/tests/logcat_benchmark.cpp b/logcat/tests/logcat_benchmark.cpp index be815be1b..dd851643c 100644 --- a/logcat/tests/logcat_benchmark.cpp +++ b/logcat/tests/logcat_benchmark.cpp @@ -49,7 +49,7 @@ TEST(logcat, sorted_order) { } } - timestamp(const char *buffer) + explicit timestamp(const char *buffer) { init(buffer); } diff --git a/logd/LogBuffer.cpp b/logd/LogBuffer.cpp index 8c30f79cb..db659780e 100644 --- a/logd/LogBuffer.cpp +++ b/logd/LogBuffer.cpp @@ -380,7 +380,7 @@ public: tid(tid), padding(0) { } - LogBufferElementKey(uint64_t key):value(key) { } + explicit LogBufferElementKey(uint64_t key):value(key) { } uint64_t getKey() { return value; } };