summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pparser.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-09-28 12:51:42 +0200
committer couriersud <couriersud@gmx.org>2019-09-28 12:51:42 +0200
commit1077396473a9b401c0dd8ea1407535b3717099db (patch)
tree15e740076017ed943f4bde063e66bbd35d8e2d72 /src/lib/netlist/plib/pparser.h
parent29eac3a3156514ad25414e7d9725323a23cbb27b (diff)
netlist: Fix more lint warnings/hints (nw)
Diffstat (limited to 'src/lib/netlist/plib/pparser.h')
-rw-r--r--src/lib/netlist/plib/pparser.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/netlist/plib/pparser.h b/src/lib/netlist/plib/pparser.h
index 8949cf875d6..8a9c12d69df 100644
--- a/src/lib/netlist/plib/pparser.h
+++ b/src/lib/netlist/plib/pparser.h
@@ -197,9 +197,8 @@ public:
COPYASSIGN(ppreprocessor, delete)
ppreprocessor &operator=(ppreprocessor &&src) = delete;
-
ppreprocessor(ppreprocessor &&s) noexcept
- : std::istream(new st(this))
+ : std::istream(new readbuffer(this))
, m_defines(std::move(s.m_defines))
, m_expr_sep(std::move(s.m_expr_sep))
, m_ifflag(s.m_ifflag)
@@ -214,11 +213,14 @@ public:
protected:
- class st : public std::streambuf
+ class readbuffer : public std::streambuf
{
public:
- st(ppreprocessor *strm) : m_strm(strm), m_buf() { setg(nullptr, nullptr, nullptr); }
- st(st &&rhs) noexcept : m_strm(rhs.m_strm), m_buf() {}
+ readbuffer(ppreprocessor *strm) : m_strm(strm), m_buf() { setg(nullptr, nullptr, nullptr); }
+ readbuffer(readbuffer &&rhs) noexcept : m_strm(rhs.m_strm), m_buf() {}
+ COPYASSIGN(readbuffer, delete)
+ readbuffer &operator=(readbuffer &&src) = delete;
+
int_type underflow() override
{
//printf("here\n");