From c12d6b570d929eabbe56160baaf85348b0fdf521 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Fri, 17 Dec 2021 15:01:32 +0000 Subject: [PATCH] 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. --- gdb/f-array-walker.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.30.2