summaryrefslogtreecommitdiffstats
path: root/libmemunreachable/Semaphore.h
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-07-12 13:50:44 -0700
committerChih-Hung Hsieh <chh@google.com>2016-07-26 11:26:01 -0700
commit034c475931e8e4da54b499c0056121490f029865 (patch)
treed07eac290b1d3744cd60ebe76486e0c2c937ea3d /libmemunreachable/Semaphore.h
parent02ccdc5db9bb39488a3fe22a907b3211c3a464b9 (diff)
downloadcore-034c475931e8e4da54b499c0056121490f029865.tar.gz
core-034c475931e8e4da54b499c0056121490f029865.tar.bz2
core-034c475931e8e4da54b499c0056121490f029865.zip
Fix google-explicit-constructor warnings in system/core.
* Declare explicit conversion constructors. * Add NOLINT for implicit conversion constructors. * Fix also some misaligned indendations. Bug: 28341362 Change-Id: Idf911f35923b408d92285cc1a053f382ba08c63e Test: build with clang-tidy
Diffstat (limited to 'libmemunreachable/Semaphore.h')
-rw-r--r--libmemunreachable/Semaphore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmemunreachable/Semaphore.h b/libmemunreachable/Semaphore.h
index 45e8c819d..6bcf4ea97 100644
--- a/libmemunreachable/Semaphore.h
+++ b/libmemunreachable/Semaphore.h
@@ -24,7 +24,7 @@
class Semaphore {
public:
- Semaphore(int count = 0) : count_(count) {}
+ explicit Semaphore(int count = 0) : count_(count) {}
~Semaphore() = default;
void Wait(std::chrono::milliseconds ms) {