| commit | 6fbd1a930a0f53bd392259ad12dd94c45305d2c8 | [log] [tgz] |
|---|---|---|
| author | Chih-Hung Hsieh <chh@google.com> | Fri May 06 10:41:04 2016 -0700 |
| committer | Chih-Hung Hsieh <chh@google.com> | Fri May 06 10:41:04 2016 -0700 |
| tree | b53ff5f7a847ea6340a512b6dec267725bff6c0f | |
| parent | b1304be7031f83401561c469c7f8624f76a2f007 [diff] |
Fix google-explicit-constructor warnings. Bug: 28341362 Change-Id: I420d23cc1f7ed44e1d9a215ee6815afab365046e
diff --git a/mmap-perf/mmapPerf.cpp b/mmap-perf/mmapPerf.cpp index 16e0c76..bbc83c7 100644 --- a/mmap-perf/mmapPerf.cpp +++ b/mmap-perf/mmapPerf.cpp
@@ -20,7 +20,7 @@ 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);