diff options
author | 2016-06-24 23:25:46 +0200 | |
---|---|---|
committer | 2016-06-24 23:25:46 +0200 | |
commit | bc37304ef96e335810e7dc10367e7e7faa2d3c1d (patch) | |
tree | 88988d9dd5fc13225752404ccc01adf10660f026 /src/lib/netlist/plib/pfmtlog.h | |
parent | 634473c1ff7a16517ec2b516ee8da341d7ce25f6 (diff) |
Add explicit to constructors to avoid bad surprises later. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pfmtlog.h')
-rw-r--r-- | src/lib/netlist/plib/pfmtlog.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.h b/src/lib/netlist/plib/pfmtlog.h index af899c35a26..7d8677b5725 100644 --- a/src/lib/netlist/plib/pfmtlog.h +++ b/src/lib/netlist/plib/pfmtlog.h @@ -154,8 +154,8 @@ protected: class pfmt : public pformat_base<pfmt> { public: - pfmt(const pstring &fmt); - pfmt(const char *fmt); + explicit pfmt(const pstring &fmt); + explicit pfmt(const char *fmt); virtual ~pfmt(); operator pstring() const { return m_str; } @@ -245,7 +245,7 @@ template <plog_level::e L, bool build_enabled = true> class plog_channel : public pfmt_writer_t<build_enabled> { public: - plog_channel(plog_dispatch_intf *b) : pfmt_writer_t<build_enabled>(), m_base(b) { } + explicit plog_channel(plog_dispatch_intf *b) : pfmt_writer_t<build_enabled>(), m_base(b) { } virtual ~plog_channel() { } protected: @@ -270,7 +270,7 @@ class plog_base { public: - plog_base(plog_dispatch_intf *proxy) + explicit plog_base(plog_dispatch_intf *proxy) : debug(proxy), info(proxy), verbose(proxy), |