summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pfunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pfunction.h')
-rw-r--r--src/lib/netlist/plib/pfunction.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/pfunction.h b/src/lib/netlist/plib/pfunction.h
index bc5b24e182b..0e24a633f3b 100644
--- a/src/lib/netlist/plib/pfunction.h
+++ b/src/lib/netlist/plib/pfunction.h
@@ -52,20 +52,20 @@ namespace plib {
* @param expr infix or postfix expression. default is infix, postrix
* to be prefixed with rpn, e.g. "rpn:A B + 1.3 /"
*/
- void compile(const std::vector<pstring> &inputs, const pstring expr);
+ void compile(const std::vector<pstring> &inputs, const pstring &expr);
/*! Compile a rpn expression
*
* @param inputs Vector of input variables, e.g. {"A","B"}
* @param expr Reverse polish notation expression, e.g. "A B + 1.3 /"
*/
- void compile_postfix(const std::vector<pstring> &inputs, const pstring expr);
+ void compile_postfix(const std::vector<pstring> &inputs, const pstring &expr);
/*! Compile an infix expression
*
* @param inputs Vector of input variables, e.g. {"A","B"}
* @param expr Infix expression, e.g. "(A+B)/1.3"
*/
- void compile_infix(const std::vector<pstring> &inputs, const pstring expr);
+ void compile_infix(const std::vector<pstring> &inputs, const pstring &expr);
/*! Evaluate the expression
*
* @param values for input variables, e.g. {1.1, 2.2}
@@ -76,7 +76,7 @@ namespace plib {
private:
void compile_postfix(const std::vector<pstring> &inputs,
- const std::vector<pstring> &cmds, const pstring expr);
+ const std::vector<pstring> &cmds, const pstring &expr);
std::vector<rpn_inst> m_precompiled; //!< precompiled expression
};