clang-format and clang-tidy fixes for 247e0616

This commit is contained in:
David 2022-09-23 16:15:20 +00:00
parent 247e06164d
commit 49c2e2a721

View File

@ -31,10 +31,9 @@
struct ListNode {
int val{0}; ///< the value stored in the node
ListNode* next{nullptr}; ///< pointer to the next node
ListNode() {} ///< default constructor
ListNode() = default; ///< default constructor
explicit ListNode(int x)
: val(x),
next(nullptr) {} ///< constructor with value for node->val provided
: val(x) {} ///< constructor with value for node->val provided
ListNode(int x, ListNode* next)
: val(x),
next(next) {