From ce23db59c6399199fa55b4b7dc8880522e2f1bca Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 30 Sep 2024 12:16:43 +0200 Subject: Enable readability-redundant-member-init check. --- test/buildtool/multithreading/task_system.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/buildtool/multithreading/task_system.test.cpp') diff --git a/test/buildtool/multithreading/task_system.test.cpp b/test/buildtool/multithreading/task_system.test.cpp index fb6bbd1f..36b1cc14 100644 --- a/test/buildtool/multithreading/task_system.test.cpp +++ b/test/buildtool/multithreading/task_system.test.cpp @@ -92,10 +92,10 @@ TEST_CASE("Side effects of tasks are reflected out of ts", "[task_system]") { SECTION("Lambda capturing `this` inside struct") { std::string ext_name{}; struct Wrapper { - std::string name{}; + std::string name; // ts must be second, otherwise name will get destroyed before the // task system is finished. - TaskSystem ts{}; + TaskSystem ts; explicit Wrapper(std::string n) : name{std::move(n)} {} -- cgit v1.2.3