Mercurial > hg > octave-terminal
changeset 11880:7b69c809e0d4 release-3-0-x
oct-map.cc: copy key_list in indexing functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Oct 2008 07:54:46 +0100 |
parents | 57c9b3f2b822 |
children | 32de72e0b179 |
files | src/ChangeLog src/oct-map.cc |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-10-30 John W. Eaton <jwe@octave.org> + + * oct-map.cc (Octave_map::index): Copy key_list. + 2008-10-17 John W. Eaton <jwe@octave.org> * DLD-FUNCTIONS/__qp__.cc (qp): Undo part of change from
--- a/src/oct-map.cc +++ b/src/oct-map.cc @@ -487,6 +487,9 @@ retval.assign (key(p), tmp); } + + // Preserve order of keys. + retval.key_list = key_list; } else retval = *this; @@ -509,6 +512,9 @@ retval.assign (key (p), tmp); } + // Preserve order of keys. + retval.key_list = key_list; + return retval; } @@ -528,6 +534,9 @@ retval.assign (key (p), tmp); } + // Preserve order of keys. + retval.key_list = key_list; + return retval; } @@ -547,6 +556,9 @@ retval.assign (key (p), tmp); } + // Preserve order of keys. + retval.key_list = key_list; + return retval; }