Mercurial > hg > octave-nkf
changeset 12434:357d593d87c1 release-3-4-x
regexp.cc: avoid deprecated Array<T>:resize function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 10 Feb 2011 00:58:31 -0500 |
parents | 455f2db40a8f |
children | 36ebbc3e82aa |
files | src/ChangeLog src/DLD-FUNCTIONS/regexp.cc src/graphics.h.in |
diffstat | 3 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-02-10 John W. Eaton <jwe@octave.org> + + * DLD-FUNCTIONS/regexp.cc (octregexp_list): Avoid deprecated + Array<T>::resize function. + 2011-02-09 Konstantinos Poulios <logari81@googlemail.com> * graphics.cc (axes::properties::update_xlabel_position,
--- a/src/DLD-FUNCTIONS/regexp.cc +++ b/src/DLD-FUNCTIONS/regexp.cc @@ -237,14 +237,14 @@ for (int i = 0; i < nnames; i++) if (named(i) == tmp_name) { - named_idx.resize(inames+1, 1); + named_idx.resize (dim_vector (inames+1, 1)); named_idx(inames) = i; found = true; break; } if (! found) { - named_idx.resize(inames+1, 1); + named_idx.resize (dim_vector (inames+1, 1)); named_idx(inames) = nnames; named.append(tmp_name); nnames++;