mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
clang-format and clang-tidy fixes for 247e0616
This commit is contained in:
parent
247e06164d
commit
49c2e2a721
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user