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; } };