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 {
|
struct ListNode {
|
||||||
int val{0}; ///< the value stored in the node
|
int val{0}; ///< the value stored in the node
|
||||||
ListNode* next{nullptr}; ///< pointer to the next node
|
ListNode* next{nullptr}; ///< pointer to the next node
|
||||||
ListNode() {} ///< default constructor
|
ListNode() = default; ///< default constructor
|
||||||
explicit ListNode(int x)
|
explicit ListNode(int x)
|
||||||
: val(x),
|
: val(x) {} ///< constructor with value for node->val provided
|
||||||
next(nullptr) {} ///< constructor with value for node->val provided
|
|
||||||
ListNode(int x, ListNode* next)
|
ListNode(int x, ListNode* next)
|
||||||
: val(x),
|
: val(x),
|
||||||
next(next) {
|
next(next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user