diff liboctave/array/idx-vector.h @ 30394:f3f3e3793fb5 stable

maint: style check C++ files in liboctave/ ahead of 7.1 release. * Array.cc, Array.h, CMatrix.cc, CSparse.cc, MArray.cc, MSparse.cc, MatrixType.cc, MatrixType.h, Range.cc, Range.h, Sparse.cc, Sparse.h, dMatrix.cc, dSparse.cc, fCMatrix.cc, fCMatrix.h, fMatrix.cc, fMatrix.h, idx-vector.cc, idx-vector.h, CollocWt.cc, CollocWt.h, DASPK.cc, DASRT.cc, DASSL.cc, EIG.cc, LSODE.cc, Quad.cc, aepbalance.cc, chol.cc, eigs-base.cc, gepbalance.cc, gsvd.cc, lo-amos-proto.h, lo-arpack-proto.h, lo-blas-proto.h, lo-lapack-proto.h, lo-qrupdate-proto.h, lo-specfun.cc, oct-convn.h, oct-fftw.h, oct-norm.cc, oct-spparms.cc, randmtzig.cc, sparse-chol.cc, sparse-dmsolve.cc, sparse-lu.cc, sparse-qr.cc, sparse-qr.h, svd.cc, file-ops.cc, file-stat.cc, lo-sysinfo.cc, oct-env.cc, f77-fcn.h, lo-cutils.h, lo-ieee.h, lo-regexp.cc, lo-utils.cc, oct-binmap.h, oct-inttypes.h, oct-sparse.cc, oct-sparse.h, oct-string.cc, url-transfer.cc: Style check C++ files in liboctave/ ahead of 7.1 release.
author Rik <rik@octave.org>
date Mon, 29 Nov 2021 10:03:47 -0800
parents 26ad902a6749
children e38202d3628d
line wrap: on
line diff
--- a/liboctave/array/idx-vector.h	Sun Nov 28 16:31:21 2021 -0500
+++ b/liboctave/array/idx-vector.h	Mon Nov 29 10:03:47 2021 -0800
@@ -74,7 +74,7 @@
 
     template <typename T, typename D> friend class std::unique_ptr;
 
-    private:
+  private:
 
     class OCTAVE_API idx_base_rep
     {
@@ -291,8 +291,8 @@
       idx_vector_rep (octave_idx_type *data, octave_idx_type len,
                       octave_idx_type ext, const dim_vector& od, direct)
         : idx_base_rep (), m_data (data), m_len (len), m_ext (ext),
-        m_aowner (nullptr), m_orig_dims (od)
-        { }
+          m_aowner (nullptr), m_orig_dims (od)
+      { }
 
       // Zero-based constructor.
       OCTAVE_API idx_vector_rep (const Array<octave_idx_type>& inda);
@@ -371,8 +371,8 @@
       idx_mask_rep (bool *data, octave_idx_type len,
                     octave_idx_type ext, const dim_vector& od, direct)
         : idx_base_rep (), m_data (data), m_len (len), m_ext (ext),
-        m_lsti (-1), m_lste (-1), m_aowner (nullptr), m_orig_dims (od)
-        { }
+          m_lsti (-1), m_lste (-1), m_aowner (nullptr), m_orig_dims (od)
+      { }
 
       OCTAVE_API idx_mask_rep (bool);
 
@@ -442,9 +442,9 @@
 
     // The shared empty vector representation (for fast default
     // constructor).
-    static OCTAVE_API idx_vector_rep *nil_rep (void);
+    static OCTAVE_API idx_vector_rep * nil_rep (void);
 
-    public:
+  public:
 
     // Fast empty constructor.
     idx_vector (void) : m_rep (nil_rep ()) { m_rep->m_count++; }
@@ -465,7 +465,7 @@
 
     idx_vector (octave_idx_type start, octave_idx_type limit,
                 octave_idx_type step = 1)
-    : m_rep (new idx_range_rep (start, limit, step)) { }
+      : m_rep (new idx_range_rep (start, limit, step)) { }
 
     static idx_vector
     make_range (octave_idx_type start, octave_idx_type step,
@@ -475,11 +475,11 @@
     }
 
     idx_vector (const Array<octave_idx_type>& inda)
-    : m_rep (new idx_vector_rep (inda)) { }
+      : m_rep (new idx_vector_rep (inda)) { }
 
     // Directly pass extent, no checking.
     idx_vector (const Array<octave_idx_type>& inda, octave_idx_type ext)
-    : m_rep (new idx_vector_rep (inda, ext, DIRECT)) { }
+      : m_rep (new idx_vector_rep (inda, ext, DIRECT)) { }
 
     // Colon is best constructed by simply copying (or referencing) this member.
     static const idx_vector colon;
@@ -501,7 +501,7 @@
 
     template <typename T>
     idx_vector (const Array<octave_int<T>>& nda)
-    : m_rep (new idx_vector_rep (nda)) { }
+      : m_rep (new idx_vector_rep (nda)) { }
 
     idx_vector (const Array<double>& nda) : m_rep (new idx_vector_rep (nda)) { }
 
@@ -1026,7 +1026,7 @@
 
     octave_idx_type max (void) const { return extent (1) - 1; }
 
-    private:
+  private:
 
     idx_base_rep *m_rep;