changeset 21943:2fc1ce5deae4

fix misleading indentation * ov-struct.cc, idx-vector.cc: Indent code for clarity and to avoid warning from GCC 6.
author John W. Eaton <jwe@octave.org>
date Fri, 17 Jun 2016 14:39:59 -0400
parents aab79a1885cc
children 4b2eab5d2a6a
files libinterp/octave-value/ov-struct.cc liboctave/array/idx-vector.cc
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.cc	Fri Jun 17 13:45:04 2016 -0400
+++ b/libinterp/octave-value/ov-struct.cc	Fri Jun 17 14:39:59 2016 -0400
@@ -338,9 +338,9 @@
                   // still stored inside our map.
                   tmp.make_unique (1);
 
-                  t_rhs =(orig_undefined
-                          ? tmp.undef_subsasgn (next_type, next_idx, rhs)
-                          : tmp.subsasgn (next_type, next_idx, rhs));
+                t_rhs =(orig_undefined
+                        ? tmp.undef_subsasgn (next_type, next_idx, rhs)
+                        : tmp.subsasgn (next_type, next_idx, rhs));
               }
             else
               err_invalid_index_for_assignment ();
--- a/liboctave/array/idx-vector.cc	Fri Jun 17 13:45:04 2016 -0400
+++ b/liboctave/array/idx-vector.cc	Fri Jun 17 14:39:59 2016 -0400
@@ -600,7 +600,9 @@
     os << data[ii] << ',' << ' ';
 
   if (len > 0)
-    os << data[len-1]; os << ']';
+    os << data[len-1];
+
+  os << ']';
 
   return os;
 }
@@ -712,7 +714,9 @@
     os << data[ii] << ',' << ' ';
 
   if (ext > 0)
-    os << data[ext-1]; os << ']';
+    os << data[ext-1];
+
+  os << ']';
 
   return os;
 }