diff src/oct-stream.cc @ 11570:57632dea2446

attempt better backward compatibility for Array constructors
author John W. Eaton <jwe@octave.org>
date Wed, 19 Jan 2011 17:55:56 -0500
parents fd0a3ac60b0e
children a83bad07f7e3
line wrap: on
line diff
--- a/src/oct-stream.cc
+++ b/src/oct-stream.cc
@@ -154,7 +154,7 @@
 }
 
 scanf_format_list::scanf_format_list (const std::string& s)
-  : nconv (0), curr_idx (0), list (16, 1), buf (0)
+  : nconv (0), curr_idx (0), list (dim_vector (16, 1)), buf (0)
 {
   octave_idx_type num_elts = 0;
 
@@ -574,7 +574,7 @@
 // Ugh again.
 
 printf_format_list::printf_format_list (const std::string& s)
-  : nconv (0), curr_idx (0), list (16, 1), buf (0)
+  : nconv (0), curr_idx (0), list (dim_vector (16, 1)), buf (0)
 {
   octave_idx_type num_elts = 0;