From 49c2e2a721b8124ed0bda68398af89a58630e5c0 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 23 Sep 2022 16:15:20 +0000 Subject: [PATCH] clang-format and clang-tidy fixes for 247e0616 --- search/median_search2.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/search/median_search2.cpp b/search/median_search2.cpp index fc09ba687..967f338d8 100644 --- a/search/median_search2.cpp +++ b/search/median_search2.cpp @@ -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) {