diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-05-06 10:41:04 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-05-06 10:41:04 -0700 |
commit | 6fbd1a930a0f53bd392259ad12dd94c45305d2c8 (patch) | |
tree | b53ff5f7a847ea6340a512b6dec267725bff6c0f /mmap-perf | |
parent | b1304be7031f83401561c469c7f8624f76a2f007 (diff) | |
download | extras-6fbd1a930a0f53bd392259ad12dd94c45305d2c8.tar.gz |
Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: I420d23cc1f7ed44e1d9a215ee6815afab365046e
Diffstat (limited to 'mmap-perf')
-rw-r--r-- | mmap-perf/mmapPerf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mmap-perf/mmapPerf.cpp b/mmap-perf/mmapPerf.cpp index 16e0c76c..bbc83c77 100644 --- a/mmap-perf/mmapPerf.cpp +++ b/mmap-perf/mmapPerf.cpp @@ -20,7 +20,7 @@ public: int get() { return m_fd; } void set(int fd) { m_fd = fd; } Fd() {} - Fd(int fd) : m_fd{fd} {} + explicit Fd(int fd) : m_fd{fd} {} ~Fd() { if (m_fd >= 0) close(m_fd); |