Mercurial > hg > octave-nkf
diff liboctave/str-vec.h @ 10355:f9347eac65dc
make string_vector be a column vector as it used to be
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 25 Feb 2010 08:21:35 +0100 |
parents | 12884915a8e4 |
children | a6b64a7a3769 |
line wrap: on
line diff
--- a/liboctave/str-vec.h +++ b/liboctave/str-vec.h @@ -39,7 +39,7 @@ string_vector (void) : Array<std::string> () { } - explicit string_vector (octave_idx_type n) : Array<std::string> (1, n) { } + explicit string_vector (octave_idx_type n) : Array<std::string> (n, 1) { } string_vector (const char *s) : Array<std::string> (1, 1, s) { } @@ -84,7 +84,7 @@ } void resize (octave_idx_type n, const std::string& rfv = resize_fill_value ()) - { Array<std::string>::resize (1, n, rfv); } + { Array<std::string>::resize (n, 1, rfv); } std::string& operator[] (octave_idx_type i) { return Array<std::string>::elem (i); }