Mercurial > octave
diff liboctave/regexp.cc @ 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 | 9867be070ee1 |
children | 72c96de7a403 |
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));