summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pstream.h')
-rw-r--r--src/lib/netlist/plib/pstream.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/netlist/plib/pstream.h b/src/lib/netlist/plib/pstream.h
index 80f354fd868..084a15ef988 100644
--- a/src/lib/netlist/plib/pstream.h
+++ b/src/lib/netlist/plib/pstream.h
@@ -43,7 +43,7 @@ protected:
explicit pstream(const unsigned flags) : m_flags(flags)
{
}
- virtual ~pstream();
+ ~pstream();
virtual void vseek(const pos_type n) = 0;
virtual pos_type vtell() = 0;
@@ -73,7 +73,6 @@ class pistream : public pstream
{
public:
- explicit pistream(const unsigned flags) : pstream(flags) {}
virtual ~pistream();
bool eof() const { return ((flags() & FLAG_EOF) != 0); }
@@ -84,6 +83,7 @@ public:
}
protected:
+ explicit pistream(const unsigned flags) : pstream(flags) {}
/* read up to n bytes from stream */
virtual pos_type vread(void *buf, const pos_type n) = 0;
@@ -97,7 +97,6 @@ class postream : public pstream
{
public:
- explicit postream(unsigned flags) : pstream(flags) {}
virtual ~postream();
void write(const void *buf, const pos_type n)
@@ -108,6 +107,7 @@ public:
void write(pistream &strm);
protected:
+ explicit postream(unsigned flags) : pstream(flags) {}
/* write n bytes to stream */
virtual void vwrite(const void *buf, const pos_type n) = 0;
@@ -123,7 +123,7 @@ class pomemstream : public postream
public:
pomemstream();
- virtual ~pomemstream();
+ virtual ~pomemstream() override;
char *memory() const { return m_mem; }
pos_type size() const { return m_size; }
@@ -146,7 +146,7 @@ class postringstream : public postream
public:
postringstream() : postream(0) { }
- virtual ~postringstream();
+ virtual ~postringstream() override;
const pstringbuffer &str() { return m_buf; }
@@ -172,7 +172,7 @@ class pofilestream : public postream
public:
explicit pofilestream(const pstring &fname);
- virtual ~pofilestream();
+ virtual ~pofilestream() override;
protected:
pofilestream(void *file, const pstring &name, const bool do_close);
@@ -221,7 +221,7 @@ class pifilestream : public pistream
public:
explicit pifilestream(const pstring &fname);
- virtual ~pifilestream();
+ virtual ~pifilestream() override;
protected:
pifilestream(void *file, const pstring &name, const bool do_close);
@@ -249,7 +249,7 @@ class pstdin : public pifilestream
public:
pstdin();
- virtual ~pstdin();
+ virtual ~pstdin() override;
};
// -----------------------------------------------------------------------------
@@ -262,7 +262,7 @@ public:
pimemstream(const void *mem, const pos_type len);
explicit pimemstream(const pomemstream &ostrm);
- virtual ~pimemstream();
+ virtual ~pimemstream() override;
pos_type size() const { return m_len; }
protected:
@@ -285,7 +285,7 @@ class pistringstream : public pimemstream
{
public:
explicit pistringstream(const pstring &str) : pimemstream(str.c_str(), str.len()), m_str(str) { }
- virtual ~pistringstream();
+ virtual ~pistringstream() override;
private:
/* only needed for a reference till destruction */
@@ -365,7 +365,7 @@ class putf8_fmt_writer : public pfmt_writer_t<>, public putf8_writer
public:
explicit putf8_fmt_writer(postream &strm);
- virtual ~putf8_fmt_writer();
+ virtual ~putf8_fmt_writer() override;
protected:
virtual void vdowrite(const pstring &ls) const override;