Skip to content

Commit 073c9fc

Browse files
committed
Cleanup: use in-class initialisation
1 parent 3fc4a3c commit 073c9fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

include/argparse.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,12 +1158,11 @@ namespace argparse
11581158
}
11591159

11601160
private:
1161-
bool m_present;
1161+
bool m_present = false;
11621162

11631163
public:
11641164
explicit OptionalArgument(Options options)
11651165
: Argument(std::move(options))
1166-
, m_present(false)
11671166
{
11681167
}
11691168

0 commit comments

Comments
 (0)