From 767555c5ccb2513a31c51b63d0d69430064de26c Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 8 Jul 2025 17:58:38 +0200 Subject: [PATCH] unnecessary capture --- slsReceiverSoftware/tests/test-Apps.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/slsReceiverSoftware/tests/test-Apps.cpp b/slsReceiverSoftware/tests/test-Apps.cpp index e31ebd3ee..ab69719ec 100644 --- a/slsReceiverSoftware/tests/test-Apps.cpp +++ b/slsReceiverSoftware/tests/test-Apps.cpp @@ -146,7 +146,7 @@ namespace sls { REQUIRE_NOTHROW(s.parse({"", "-n", "10"})); // valid auto opts = s.parse({""}); - std::visit([&](const auto& o) { + std::visit([](const auto& o) { using T = decltype(o); if constexpr (is_type()) { REQUIRE(o.numReceivers == 1); // default @@ -159,7 +159,7 @@ namespace sls { }, opts); opts = s.parse({"", "-n", "5"}); - std::visit([&](const auto& o) { + std::visit([](const auto& o) { using T = decltype(o); if constexpr (is_type()) { REQUIRE(o.numReceivers == 5); @@ -173,7 +173,7 @@ namespace sls { opts = s.parse({"", "-c", "-n", "3"}); - std::visit([&](const auto& o) { + std::visit([](const auto& o) { using T = decltype(o); if constexpr (is_type()) { REQUIRE(o.numReceivers == 3); @@ -213,7 +213,7 @@ namespace sls { // default auto opts = s.parse({""}); - std::visit([&](const auto& o) { + std::visit([](const auto& o) { using T = decltype(o); if constexpr (is_type()) { REQUIRE(o.port == 1954); @@ -228,7 +228,7 @@ namespace sls { }, opts); opts = s.parse({"", "1958", "10"}); - std::visit([&](const auto& o) { + std::visit([](const auto& o) { using T = decltype(o); if constexpr (is_type()) { REQUIRE(o.port == 1958); @@ -243,7 +243,7 @@ namespace sls { }, opts); opts = s.parse({"", "1958", "10", "1"}); - std::visit([&](const auto& o) { + std::visit([](const auto& o) { using T = decltype(o); if constexpr (is_type()) { REQUIRE(o.port == 1958);