Mercurial > hg > octave-lojdl
changeset 7524:a653856aa3e1
array_value::add_constraint: pass dim_vector as const reference, not value
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 25 Feb 2008 03:47:57 -0500 |
parents | f2000f1971ab |
children | 3feb6e9643cd |
files | src/ChangeLog src/graphics.h.in |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,10 @@ (axes::properties): xlim, ylim, zlim, clim, alim, xtick, ytick, ztick properties are now row_vector_property objects instead of array_property objects. + + * graphics.h.in (array_property::add_constraint): Arg is now const + reference, not value. + * genprops.awk: Special case row_vector_property in the same way as array_property.
--- a/src/graphics.h.in +++ b/src/graphics.h.in @@ -705,7 +705,7 @@ void add_constraint (const std::string& type) { type_constraints.push_back (type); } - void add_constraint (dim_vector dims) + void add_constraint (const dim_vector& dims) { size_constraints.push_back (dims); } array_property& operator = (const octave_value& val)