diff options
author | 2017-01-05 01:43:12 +0100 | |
---|---|---|
committer | 2017-01-05 01:43:31 +0100 | |
commit | 02c3f45bff27e8ca27d5f68f52c816e5f055eadf (patch) | |
tree | f647ed591e5997496a6bb0ff3dc28fb887534f1f /src/lib/netlist/plib/pstream.cpp | |
parent | 67841056dae03d2e8f418b3be7150701c705d6b5 (diff) |
Fix clang "-Wno-weak-vtables" warnings in netlist source. Refactored
code along the way. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pstream.cpp')
-rw-r--r-- | src/lib/netlist/plib/pstream.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pstream.cpp b/src/lib/netlist/plib/pstream.cpp index b9895036a12..b05d86d7bc5 100644 --- a/src/lib/netlist/plib/pstream.cpp +++ b/src/lib/netlist/plib/pstream.cpp @@ -14,10 +14,19 @@ #include "palloc.h" namespace plib { + +pstream::~pstream() +{ +} + // ----------------------------------------------------------------------------- // pistream: input stream // ----------------------------------------------------------------------------- +pistream::~pistream() +{ +} + bool pistream::readline(pstring &line) { char c = 0; @@ -44,6 +53,10 @@ bool pistream::readline(pstring &line) // postream: output stream // ----------------------------------------------------------------------------- +postream::~postream() +{ +} + void postream::write(pistream &strm) { char buf[1024]; @@ -142,6 +155,10 @@ pstdin::pstdin() /* nothing to do */ } +pstdin::~pstdin() +{ +} + // ----------------------------------------------------------------------------- // Output file stream // ----------------------------------------------------------------------------- @@ -209,6 +226,11 @@ pstream::pos_type pofilestream::vtell() return static_cast<pos_type>(ret); } +postringstream::~postringstream() +{ +} + + // ----------------------------------------------------------------------------- // pstderr: write to stderr // ----------------------------------------------------------------------------- @@ -218,6 +240,10 @@ pstderr::pstderr() { } +pstderr::~pstderr() +{ +} + // ----------------------------------------------------------------------------- // pstdout: write to stdout // ----------------------------------------------------------------------------- @@ -227,6 +253,10 @@ pstdout::pstdout() { } +pstdout::~pstdout() +{ +} + // ----------------------------------------------------------------------------- // Memory stream // ----------------------------------------------------------------------------- @@ -273,6 +303,10 @@ pimemstream::pos_type pimemstream::vtell() return m_pos; } +pistringstream::~pistringstream() +{ +} + // ----------------------------------------------------------------------------- // Output memory stream // ----------------------------------------------------------------------------- @@ -333,4 +367,9 @@ pstream::pos_type pomemstream::vtell() return m_pos; } +pstream_fmt_writer_t::~pstream_fmt_writer_t() +{ +} + + } |