Mercurial > octave
changeset 23476:1a4b4c074800
simplify checking evaluation context for classdef methods
* ov-classdef.cc (is_method_executing): Call tree_evaluator::evaluate
instead of finding the the value of an lvalue object.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 May 2017 12:13:12 -0400 |
parents | d691ed308237 |
children | 3530b956d707 |
files | libinterp/octave-value/ov-classdef.cc |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.cc Tue May 09 08:46:07 2017 -0700 +++ b/libinterp/octave-value/ov-classdef.cc Tue May 09 12:13:12 2017 -0400 @@ -456,9 +456,7 @@ { octave::tree_decl_elt *elt = pl->front (); - octave_lvalue ref = elt->lvalue (tw); - - octave_value arg0 = ref.value (); + octave_value arg0 = tw->evaluate (elt); if (arg0.is_defined () && arg0.type_name () == "object") {