[PATCH 1/6] Initialize `m_ndimensions' in the member initializer list
Maciej W. Rozycki
macro@embecosm.com
Sat Dec 11 11:47:06 GMT 2021
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(-)
gdb-fortran-array-walker-m-ndimensions-init.diff
Index: src-upstream/gdb/f-array-walker.h
===================================================================
--- src-upstream.orig/gdb/f-array-walker.h
+++ src-upstream/gdb/f-array-walker.h
@@ -176,10 +176,9 @@ class fortran_array_walker
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
More information about the Gdb-patches
mailing list