Skip to content

Commit 4fa9208

Browse files
committed
Use default member initialization
1 parent e80a04c commit 4fa9208

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/osmium/area/detail/proto_ring.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@ namespace osmium {
8686
int64_t m_num;
8787
#endif
8888

89-
int64_t m_sum;
89+
int64_t m_sum = 0;
9090

9191
public:
9292

9393
explicit ProtoRing(NodeRefSegment* segment) noexcept :
94-
m_min_segment(segment),
94+
m_min_segment(segment)
9595
#ifdef OSMIUM_DEBUG_RING_NO
96-
m_num(next_num()),
96+
, m_num(next_num())
9797
#endif
98-
m_sum(0) {
98+
{
9999
add_segment_back(segment);
100100
}
101101

0 commit comments

Comments
 (0)