Mercurial > hg > octave-nkf
diff libinterp/octave-value/ov-classdef.cc @ 18530:00ba456b9aa8
Fix dispatch class of property accessor methods.
* ov-classdef (cdef_class::make_meta_class): Make sure the property
accessor methods have the correct dispatch class.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 13 Feb 2014 22:29:44 -0500 |
parents | b0aba84cf80f |
children | 932aca9a7c57 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.cc +++ b/libinterp/octave-value/ov-classdef.cc @@ -2938,6 +2938,7 @@ if (git != get_methods.end ()) { + make_function_of_class (retval, git->second); prop.put ("GetMethod", git->second); get_methods.erase (git); } @@ -2947,6 +2948,7 @@ if (sit != set_methods.end ()) { + make_function_of_class (retval, sit->second); prop.put ("SetMethod", sit->second); set_methods.erase (sit); }