Mercurial > octave-nkf
changeset 14057:7e60182e6a1c stable
avoid deprecated Array constructor
* liboctave/regexp.cc (regexp::is_match): Use Array (const
dim_vector&), not Array (octave_idx_type, int).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Dec 2011 11:41:03 -0500 |
parents | c3d401562410 |
children | 421c892fd526 |
files | liboctave/regexp.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/regexp.cc Thu Dec 15 11:23:51 2011 -0500 +++ b/liboctave/regexp.cc Thu Dec 15 11:41:03 2011 -0500 @@ -417,7 +417,7 @@ { octave_idx_type len = buffer.length (); - Array<bool> retval (len, 1); + Array<bool> retval (dim_vector (len, 1)); for (octave_idx_type i = 0; i < buffer.length (); i++) retval(i) = is_match (buffer(i));