summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pstream.h
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2017-01-05 01:43:12 +0100
committer couriersud <couriersud@arcor.de>2017-01-05 01:43:31 +0100
commit02c3f45bff27e8ca27d5f68f52c816e5f055eadf (patch)
treef647ed591e5997496a6bb0ff3dc28fb887534f1f /src/lib/netlist/plib/pstream.h
parent67841056dae03d2e8f418b3be7150701c705d6b5 (diff)
Fix clang "-Wno-weak-vtables" warnings in netlist source. Refactored
code along the way. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pstream.h')
-rw-r--r--src/lib/netlist/plib/pstream.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/netlist/plib/pstream.h b/src/lib/netlist/plib/pstream.h
index 11bf0fb12cf..6d02c4d1551 100644
--- a/src/lib/netlist/plib/pstream.h
+++ b/src/lib/netlist/plib/pstream.h
@@ -32,9 +32,7 @@ public:
explicit pstream(const unsigned flags) : m_flags(flags)
{
}
- virtual ~pstream()
- {
- }
+ virtual ~pstream();
bool seekable() const { return ((m_flags & FLAG_SEEKABLE) != 0); }
@@ -79,7 +77,7 @@ class pistream : public pstream
public:
explicit pistream(const unsigned flags) : pstream(flags) {}
- virtual ~pistream() {}
+ virtual ~pistream();
bool eof() const { return ((flags() & FLAG_EOF) != 0); }
@@ -115,7 +113,7 @@ class postream : public pstream
public:
explicit postream(unsigned flags) : pstream(flags) {}
- virtual ~postream() {}
+ virtual ~postream();
/* this digests linux & dos/windows text files */
@@ -184,7 +182,7 @@ class postringstream : public postream
public:
postringstream() : postream(0) { }
- virtual ~postringstream() { }
+ virtual ~postringstream();
const pstringbuffer &str() { return m_buf; }
@@ -238,6 +236,7 @@ class pstderr : public pofilestream
P_PREVENT_COPYING(pstderr)
public:
pstderr();
+ virtual ~pstderr();
};
// -----------------------------------------------------------------------------
@@ -249,6 +248,7 @@ class pstdout : public pofilestream
P_PREVENT_COPYING(pstdout)
public:
pstdout();
+ virtual ~pstdout();
};
// -----------------------------------------------------------------------------
@@ -290,6 +290,7 @@ class pstdin : public pifilestream
public:
pstdin();
+ virtual ~pstdin();
};
// -----------------------------------------------------------------------------
@@ -325,8 +326,8 @@ class pistringstream : public pimemstream
{
P_PREVENT_COPYING(pistringstream)
public:
-
pistringstream(const pstring &str) : pimemstream(str.c_str(), str.len()), m_str(str) { }
+ virtual ~pistringstream();
private:
/* only needed for a reference till destruction */
@@ -343,7 +344,7 @@ class pstream_fmt_writer_t : public plib::pfmt_writer_t<>
public:
explicit pstream_fmt_writer_t(postream &strm) : m_strm(strm) {}
- virtual ~pstream_fmt_writer_t() { }
+ virtual ~pstream_fmt_writer_t();
protected:
virtual void vdowrite(const pstring &ls) const override