diff src/DLD-FUNCTIONS/regexp.cc @ 12433:02669a1aa070

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 4ced6b90fffb
children e4dbfe3019b1
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/regexp.cc	Wed Feb 09 16:26:35 2011 -0500
+++ b/src/DLD-FUNCTIONS/regexp.cc	Thu Feb 10 00:58:31 2011 -0500
@@ -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++;