Mercurial > octave
diff libinterp/octave-value/ov-classdef.cc @ 28516:70d155283f33
maint: merge stable to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Jun 2020 15:12:39 -0400 |
parents | b743a63e2dab 49f4d7814760 |
children | 960ea0ccff98 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.cc Sat Jun 27 12:01:33 2020 +0200 +++ b/libinterp/octave-value/ov-classdef.cc Mon Jun 29 15:12:39 2020 -0400 @@ -437,15 +437,10 @@ if (meth_name.empty ()) return cls.doc_string (); - octave_value ov_meth = cls.get_method (meth_name); + octave::cdef_method cdef_meth = cls.find_method (meth_name); - if (ov_meth.is_defined ()) - { - octave_function *fcn = ov_meth.function_value (); - - if (fcn) - return fcn->doc_string (); - } + if (cdef_meth.ok ()) + return cdef_meth.get_doc_string (); } return "";