diff options
author | 2017-01-19 18:05:19 +0100 | |
---|---|---|
committer | 2017-01-20 22:29:23 +0100 | |
commit | 4d15501a30d78eecc5011ebdd12a7568954129cb (patch) | |
tree | f3364bc26aae7719fb8fa3b153847188446844a7 /src/lib/netlist/plib/pstring.h | |
parent | 1ae3e29ea3fd90e5df31d52c5d3860fde7f3cbac (diff) |
Netlist: code refactoring
Make streams provide binary access only. Use putf8_reader and
putf8_writer to actually access streams. Replace some char * parameters
with pstring where appropriate. Minor code refactoring and move
functionality were it belongs. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pstring.h')
-rw-r--r-- | src/lib/netlist/plib/pstring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pstring.h b/src/lib/netlist/plib/pstring.h index ae255d4a6cd..999bd10ce6b 100644 --- a/src/lib/netlist/plib/pstring.h +++ b/src/lib/netlist/plib/pstring.h @@ -81,6 +81,7 @@ public: pstring_t(const pstring_t &string) : m_ptr(&m_zero) { init(string); } pstring_t(pstring_t &&string) : m_ptr(string.m_ptr) { string.m_ptr = nullptr; } + explicit pstring_t(code_t code) : m_ptr(&m_zero) { pstring_t t; t+= code; init(t); } // assignment operators pstring_t &operator=(const pstring_t &string) { pcopy(string); return *this; } |