Mercurial > octave
diff libinterp/parse-tree/pt-idx.h @ 25383:d3a035528c9a
use reference to tree_evaluator instead of pointer
Always use a reference to the evaluator instead of a pointer because
it is required to and will always exist everywhere it is used.
Files affected: ov-fcn-handle.cc, ov-fcn-handle.h, pt-decl.h,
pt-eval.cc, pt-exp.cc, pt-exp.h, pt-id.cc, pt-id.h, pt-idx.cc,
pt-idx.h, pt-tm-const.cc, pt-tm-const.h.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 15 May 2018 18:09:04 -0400 |
parents | 6652d3823428 |
children | f23f27e78aa2 00f796120a6d |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-idx.h Tue May 15 17:05:47 2018 -0400 +++ b/libinterp/parse-tree/pt-idx.h Tue May 15 18:09:04 2018 -0400 @@ -93,7 +93,7 @@ bool rvalue_ok (void) const { return true; } - octave_lvalue lvalue (tree_evaluator *tw); + octave_lvalue lvalue (tree_evaluator& tw); tree_index_expression * dup (symbol_scope& scope) const; @@ -104,7 +104,7 @@ std::string get_struct_index - (tree_evaluator *tw, std::list<string_vector>::const_iterator p_arg_nm, + (tree_evaluator& tw, std::list<string_vector>::const_iterator p_arg_nm, std::list<tree_expression *>::const_iterator p_dyn_field) const; private: