diff options
author | Maciej W. Rozycki <macro@embecosm.com> | 2021-12-17 15:01:32 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@embecosm.com> | 2021-12-17 15:01:32 +0000 |
commit | c12d6b570d929eabbe56160baaf85348b0fdf521 (patch) | |
tree | e9c2a73f62f1b9078724447c5fba509f1d99c057 /gdb | |
parent | 72994b6028360eccb5d25b39d2e18b386d091426 (diff) | |
download | fsf-binutils-gdb-c12d6b570d929eabbe56160baaf85348b0fdf521.zip fsf-binutils-gdb-c12d6b570d929eabbe56160baaf85348b0fdf521.tar.gz fsf-binutils-gdb-c12d6b570d929eabbe56160baaf85348b0fdf521.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/f-array-walker.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/f-array-walker.h b/gdb/f-array-walker.h index 49a32be..5f889e6 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 |