Mercurial > hg > octave-kai
changeset 9580:8bf27324a9d0
fix current class method determination
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 27 Aug 2009 13:46:34 +0200 |
parents | 42a18d5aff7f |
children | 3d0d2bda3a0f |
files | src/ChangeLog src/ov-class.cc |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-08-27 Jaroslav Hajek <highegg@gmail.com> + + * src/ov-class.cc (get_current_method_class): Simplify. + 2009-08-27 Jaroslav Hajek <highegg@gmail.com> * OPERATORS/op-cs-cs.cc: Simplify comparison operators.
--- a/src/ov-class.cc +++ b/src/ov-class.cc @@ -123,11 +123,7 @@ octave_function *fcn = octave_call_stack::current (); - std::string my_dir = fcn->dir_name (); - - std::string method_class = file_ops::tail (my_dir); - - retval = method_class.substr (1); + retval = fcn->dispatch_class (); return retval; }