From: Maciej W. Rozycki Date: Fri, 17 Dec 2021 15:01:32 +0000 (+0000) Subject: Initialize `m_ndimensions' in the member initializer list X-Git-Tag: binutils-2_38~396 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c12d6b570d929eabbe56160baaf85348b0fdf521;p=thirdparty%2Fbinutils-gdb.git Initialize `m_ndimensions' in the member initializer list 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. --- diff --git a/gdb/f-array-walker.h b/gdb/f-array-walker.h index 49a32be7530..5f889e6924a 100644 --- a/gdb/f-array-walker.h +++ b/gdb/f-array-walker.h @@ -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