diff options
Diffstat (limited to 'src/lib/netlist/plib')
-rw-r--r-- | src/lib/netlist/plib/pfmtlog.h | 4 | ||||
-rw-r--r-- | src/lib/netlist/plib/poptions.h | 8 | ||||
-rw-r--r-- | src/lib/netlist/plib/pstream.h | 32 |
3 files changed, 22 insertions, 22 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.h b/src/lib/netlist/plib/pfmtlog.h index 058152a91cc..7a63d14fc3a 100644 --- a/src/lib/netlist/plib/pfmtlog.h +++ b/src/lib/netlist/plib/pfmtlog.h @@ -158,7 +158,7 @@ public: protected: - void format_element(const char *f, const char *l, const char *fmt_spec, ...); + void format_element(const char *f, const char *l, const char *fmt_spec, ...) override; private: @@ -243,7 +243,7 @@ public: virtual ~plog_channel() { } protected: - virtual void vdowrite(const pstring &ls) const; + virtual void vdowrite(const pstring &ls) const override; private: plog_dispatch_intf *m_base; diff --git a/src/lib/netlist/plib/poptions.h b/src/lib/netlist/plib/poptions.h index b082504930d..c6daa3b2596 100644 --- a/src/lib/netlist/plib/poptions.h +++ b/src/lib/netlist/plib/poptions.h @@ -52,7 +52,7 @@ public: : poption(ashort, along, help, true, parent), m_val(defval) {} - virtual int parse(pstring argument) { m_val = argument; return 0; } + virtual int parse(pstring argument) override { m_val = argument; return 0; } pstring operator ()() { return m_val; } private: @@ -66,7 +66,7 @@ public: : poption(ashort, along, help, true, parent), m_val(defval), m_limit(limit, ":") {} - virtual int parse(pstring argument) + virtual int parse(pstring argument) override { if (m_limit.contains(argument)) { @@ -90,7 +90,7 @@ public: : poption(ashort, along, help, false, parent), m_val(false) {} - virtual int parse(ATTR_UNUSED pstring argument) { m_val = true; return 0; } + virtual int parse(ATTR_UNUSED pstring argument) override { m_val = true; return 0; } bool operator ()() { return m_val; } private: @@ -104,7 +104,7 @@ public: : poption(ashort, along, help, true, parent), m_val(defval) {} - virtual int parse(pstring argument) + virtual int parse(pstring argument) override { bool err = false; m_val = argument.as_double(&err); diff --git a/src/lib/netlist/plib/pstream.h b/src/lib/netlist/plib/pstream.h index 61f0959cadd..6cc4c6a30a7 100644 --- a/src/lib/netlist/plib/pstream.h +++ b/src/lib/netlist/plib/pstream.h @@ -184,9 +184,9 @@ public: protected: /* write n bytes to stream */ - virtual void vwrite(const void *buf, const unsigned n); - virtual void vseek(const pos_type n); - virtual pos_type vtell(); + virtual void vwrite(const void *buf, const unsigned n) override; + virtual void vseek(const pos_type n) override; + virtual pos_type vtell() override; private: pos_type m_pos; @@ -208,12 +208,12 @@ public: protected: /* write n bytes to stream */ - virtual void vwrite(const void *buf, const unsigned n) + virtual void vwrite(const void *buf, const unsigned n) override { m_buf.cat(buf, n); } - virtual void vseek(const pos_type n) { } - virtual pos_type vtell() { return m_buf.len(); } + virtual void vseek(const pos_type n) override { } + virtual pos_type vtell() override { return m_buf.len(); } private: pstringbuffer m_buf; @@ -236,9 +236,9 @@ public: protected: pofilestream(void *file, const bool do_close); /* write n bytes to stream */ - virtual void vwrite(const void *buf, const unsigned n); - virtual void vseek(const pos_type n); - virtual pos_type vtell(); + virtual void vwrite(const void *buf, const unsigned n) override; + virtual void vseek(const pos_type n) override; + virtual pos_type vtell() override; private: void *m_file; @@ -288,9 +288,9 @@ protected: pifilestream(void *file, const bool do_close); /* read up to n bytes from stream */ - virtual unsigned vread(void *buf, const unsigned n); - virtual void vseek(const pos_type n); - virtual pos_type vtell(); + virtual unsigned vread(void *buf, const unsigned n) override; + virtual void vseek(const pos_type n) override; + virtual pos_type vtell() override; private: void *m_file; @@ -327,9 +327,9 @@ public: protected: /* read up to n bytes from stream */ - virtual unsigned vread(void *buf, const unsigned n); - virtual void vseek(const pos_type n); - virtual pos_type vtell(); + virtual unsigned vread(void *buf, const unsigned n) override; + virtual void vseek(const pos_type n) override; + virtual pos_type vtell() override; private: pos_type m_pos; @@ -366,7 +366,7 @@ public: virtual ~pstream_fmt_writer_t() { } protected: - virtual void vdowrite(const pstring &ls) const + virtual void vdowrite(const pstring &ls) const override { m_strm.write(ls); } |