Mercurial > hg > octave-lyh
diff liboctave/str-vec.cc @ 10314:07ebe522dac2
untabify liboctave C++ sources
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:23:32 -0500 |
parents | 4c0cdbe0acca |
children | 12884915a8e4 |
line wrap: on
line diff
--- a/liboctave/str-vec.cc +++ b/liboctave/str-vec.cc @@ -123,12 +123,12 @@ octave_idx_type k = 0; for (octave_idx_type i = 1; i < len; i++) - if (elem(i) != elem(k)) - if (++k != i) - elem(k) = elem(i); + if (elem(i) != elem(k)) + if (++k != i) + elem(k) = elem(i); if (len != ++k) - resize (k); + resize (k); } return *this; @@ -209,7 +209,7 @@ { octave_idx_type name_length = elem (i).length (); if (name_length > max_name_length) - max_name_length = name_length; + max_name_length = name_length; } // Allow at least two spaces between names. @@ -243,21 +243,21 @@ // Print the next row. while (1) - { - std::string nm = elem (count); + { + std::string nm = elem (count); - os << nm; - octave_idx_type name_length = nm.length (); + os << nm; + octave_idx_type name_length = nm.length (); - count += nr; - if (count >= total_names) - break; + count += nr; + if (count >= total_names) + break; - octave_idx_type spaces_to_pad = max_name_length - name_length; - for (octave_idx_type i = 0; i < spaces_to_pad; i++) - os << " "; - pos += max_name_length; - } + octave_idx_type spaces_to_pad = max_name_length - name_length; + for (octave_idx_type i = 0; i < spaces_to_pad; i++) + os << " "; + pos += max_name_length; + } os << "\n"; }