summaryrefslogtreecommitdiff
path: root/test/buildtool/multithreading/task_system.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-30 12:16:43 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-07 13:37:39 +0200
commitce23db59c6399199fa55b4b7dc8880522e2f1bca (patch)
tree5b77d3c84289f023cbe6f4a81cf391a0087fe660 /test/buildtool/multithreading/task_system.test.cpp
parente5d7cb5ce5b9cc40b0c56b18980a4234118c1739 (diff)
downloadjustbuild-ce23db59c6399199fa55b4b7dc8880522e2f1bca.tar.gz
Enable readability-redundant-member-init check.
Diffstat (limited to 'test/buildtool/multithreading/task_system.test.cpp')
-rw-r--r--test/buildtool/multithreading/task_system.test.cpp4
1 files changed, 2 insertions, 2 deletions
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)} {}