diff options
author | 2019-11-04 22:04:11 +0100 | |
---|---|---|
committer | 2019-11-04 22:04:11 +0100 | |
commit | 2cf61b2e4c72a80eb688d1b6ffcacfdeaf55bf26 (patch) | |
tree | 0d056f80f69db1a17a680c6e3d8fac06aa6b3e45 /src/lib/netlist/plib/pstream.h | |
parent | e89f009945652ea15d941d4491cb8d9c0d2e3b65 (diff) |
netlist: code maintenance. (nw)
- more const
- explicitly raise exceptions instead of leaving this to log.fatal()
- correct a number of cppcheck findings.
- dead code removal
- clang lint corrections, e.g. include order
Diffstat (limited to 'src/lib/netlist/plib/pstream.h')
-rw-r--r-- | src/lib/netlist/plib/pstream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pstream.h b/src/lib/netlist/plib/pstream.h index 13903caa9b4..6b438e83c1a 100644 --- a/src/lib/netlist/plib/pstream.h +++ b/src/lib/netlist/plib/pstream.h @@ -117,13 +117,13 @@ private: template <> struct constructor_helper<putf8_reader> { - plib::unique_ptr<std::istream> operator()(putf8_reader &&s) { return std::move(s.m_strm); } + plib::unique_ptr<std::istream> operator()(putf8_reader &&s) const { return std::move(s.m_strm); } }; template <> struct constructor_helper<plib::unique_ptr<std::istream>> { - plib::unique_ptr<std::istream> operator()(plib::unique_ptr<std::istream> &&s) { return std::move(s); } + plib::unique_ptr<std::istream> operator()(plib::unique_ptr<std::istream> &&s) const { return std::move(s); } }; |