comparison src/ChangeLog @ 10075:84b0725f4b09

return class types by reference in const Array element access functions
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 08 Jan 2010 11:25:08 +0100
parents 5e2b4b7967cc
children 4b270d1540f7
comparison
equal deleted inserted replaced
10074:5e2b4b7967cc 10075:84b0725f4b09
1 2010-01-08 Jaroslav Hajek <highegg@gmail.com>
2
3 * oct-obj.h (octave_value_list::operator () const,
4 octave_value_list::elem const): Return const octave_value&.
5 * ov.cc (octave_value::function_value,
6 octave_value::user_function_value, octave_value::user_script_value,
7 octave_value::user_code_value, octave_value::fcn_handle_value,
8 octave_value::fcn_inline_value): Declare as const.
9 * ov.h: Likewise.
10 * ov-base.h (octave_value::function_value const): Remove overload.
11 * ov-usr-fcn.h (octave_user_function::function_value const): Likewise.
12 * ov-builtin.h (octave_builtin::function_value const): Likewise.
13 * ov-builtin.h (octave_builtin::function_value const): Likewise.
14
15 * DLD-FUNCTIONS/cellfun.cc (Fcellfun): Take a non-const copy prior to
16 calling non-const functions.
17
18
1 2010-01-08 Jaroslav Hajek <highegg@gmail.com> 19 2010-01-08 Jaroslav Hajek <highegg@gmail.com>
2 20
3 * DLD-FUNCTIONS/strfind.cc (qs_replace): New function. 21 * DLD-FUNCTIONS/strfind.cc (qs_replace): New function.
4 (Fstrrep): Use it here. Allow S to be a cellstr. 22 (Fstrrep): Use it here. Allow S to be a cellstr.
5 23