]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Initialize `m_ndimensions' in the member initializer list
authorMaciej W. Rozycki <macro@embecosm.com>
Fri, 17 Dec 2021 15:01:32 +0000 (15:01 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Fri, 17 Dec 2021 15:01:32 +0000 (15:01 +0000)
Following our coding convention initialize the `m_ndimensions' member in
the member initializer list rather than in the body of the constructor
of the `fortran_array_walker' class.  No functional change.

gdb/f-array-walker.h

index 49a32be7530f69cd421668456fb8c52ad15067b6..5f889e6924ad1c083892fead7c8511f8f0e6d33f 100644 (file)
@@ -176,10 +176,9 @@ public:
                        Args... args)
     : m_type (type),
       m_address (address),
-      m_impl (type, address, args...)
-  {
-    m_ndimensions =  calc_f77_array_dims (m_type);
-  }
+      m_impl (type, address, args...),
+      m_ndimensions (calc_f77_array_dims (m_type))
+  { /* Nothing.  */ }
 
   /* Walk the array.  */
   void