summaryrefslogtreecommitdiff
path: root/libfec
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-08-02 11:11:24 -0700
committerChih-Hung Hsieh <chh@google.com>2016-08-02 11:11:24 -0700
commit6dbbf3d4f10b03db354d3d9e94f1d13729e2bfe7 (patch)
tree90804fa1cdc2227ab7d752704176f2b60fb3d748 /libfec
parent52e9f95751fa0d5b1e780e0899c1acf1814f8b6c (diff)
downloadextras-6dbbf3d4f10b03db354d3d9e94f1d13729e2bfe7.tar.gz
Fix google-explicit-constructor warnings in libfec.
Bug: 28341362 Change-Id: Id7d9593e87fc8187942ef808f6ccf943a6ec023d Test: build with WITH_TIDY=1
Diffstat (limited to 'libfec')
-rw-r--r--libfec/include/fec/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfec/include/fec/io.h b/libfec/include/fec/io.h
index 7f8122c9..5e597ac2 100644
--- a/libfec/include/fec/io.h
+++ b/libfec/include/fec/io.h
@@ -123,7 +123,7 @@ namespace fec {
public:
io() : handle_(nullptr, fec_close) {}
- io(const std::string& fn, int mode = O_RDONLY, int flags = 0,
+ explicit io(const std::string& fn, int mode = O_RDONLY, int flags = 0,
int roots = FEC_DEFAULT_ROOTS) : handle_(nullptr, fec_close) {
open(fn, mode, flags, roots);
}