summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/nl_parser.h')
-rw-r--r--src/lib/netlist/nl_parser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/nl_parser.h b/src/lib/netlist/nl_parser.h
index f14250ea7d1..16075ca4914 100644
--- a/src/lib/netlist/nl_parser.h
+++ b/src/lib/netlist/nl_parser.h
@@ -18,7 +18,7 @@ namespace netlist
public:
template <typename T>
parser_t(T &&strm, setup_t &setup)
- : plib::ptokenizer(std::move(strm))
+ : plib::ptokenizer(std::forward<T>(strm))
, m_setup(setup)
{
}
@@ -45,10 +45,10 @@ namespace netlist
/* for debugging messages */
netlist_state_t &netlist() { return m_setup.netlist(); }
- virtual void verror(const pstring &msg, int line_num, const pstring &line) override;
+ void verror(const pstring &msg, int line_num, const pstring &line) override;
private:
- nl_double eval_param(const token_t tok);
+ nl_double eval_param(const token_t &tok);
token_id_t m_tok_param_left;
token_id_t m_tok_param_right;
@@ -75,6 +75,6 @@ namespace netlist
setup_t &m_setup;
};
-}
+} // namespace netlist
#endif /* NL_PARSER_H_ */