@@ -661,7 +661,7 @@ TEST_F(TodayServiceCase, SubscribeNextAppointmentChangeOverride)
661661 response::Value variables (response::Type::Map);
662662 auto state = std::make_shared<today::RequestState>(7 );
663663 auto subscriptionObject = std::make_shared<today::NextAppointmentChange>(
664- [this ](const std::shared_ptr<service::RequestState>& state)
664+ [](const std::shared_ptr<service::RequestState>& state)
665665 -> std::shared_ptr<today::Appointment> {
666666 EXPECT_EQ (7 , std::static_pointer_cast<today::RequestState>(state)->requestId )
667667 << " should pass the RequestState to the subscription resolvers" ;
@@ -1248,7 +1248,7 @@ TEST_F(TodayServiceCase, SubscribeNodeChangeMatchingId)
12481248 response::Value variables (response::Type::Map);
12491249 auto state = std::make_shared<today::RequestState>(13 );
12501250 auto subscriptionObject = std::make_shared<today::NodeChange>(
1251- [this ](const std::shared_ptr<service::RequestState>& state,
1251+ [](const std::shared_ptr<service::RequestState>& state,
12521252 response::IdType&& idArg) -> std::shared_ptr<today::object::Node> {
12531253 EXPECT_EQ (13 , std::static_pointer_cast<today::RequestState>(state)->requestId )
12541254 << " should pass the RequestState to the subscription resolvers" ;
@@ -1316,8 +1316,8 @@ TEST_F(TodayServiceCase, SubscribeNodeChangeMismatchedId)
13161316 response::Value variables (response::Type::Map);
13171317 bool calledResolver = false ;
13181318 auto subscriptionObject = std::make_shared<today::NodeChange>(
1319- [this , &calledResolver](const std::shared_ptr<service::RequestState>& state,
1320- response::IdType&& idArg) -> std::shared_ptr<today::object::Node> {
1319+ [&calledResolver](const std::shared_ptr<service::RequestState>& /* state */ ,
1320+ response::IdType&& /* idArg */ ) -> std::shared_ptr<today::object::Node> {
13211321 calledResolver = true ;
13221322 return nullptr ;
13231323 });
@@ -1373,7 +1373,7 @@ TEST_F(TodayServiceCase, SubscribeNodeChangeFuzzyComparator)
13731373 return true ;
13741374 };
13751375 auto subscriptionObject = std::make_shared<today::NodeChange>(
1376- [this ](const std::shared_ptr<service::RequestState>& state,
1376+ [](const std::shared_ptr<service::RequestState>& state,
13771377 response::IdType&& idArg) -> std::shared_ptr<today::object::Node> {
13781378 const response::IdType fuzzyId { ' f' , ' a' , ' k' };
13791379
@@ -1453,8 +1453,8 @@ TEST_F(TodayServiceCase, SubscribeNodeChangeFuzzyMismatch)
14531453 };
14541454 bool calledResolver = false ;
14551455 auto subscriptionObject = std::make_shared<today::NodeChange>(
1456- [this , &calledResolver](const std::shared_ptr<service::RequestState>& state,
1457- response::IdType&& idArg) -> std::shared_ptr<today::object::Node> {
1456+ [&calledResolver](const std::shared_ptr<service::RequestState>& /* state */ ,
1457+ response::IdType&& /* idArg */ ) -> std::shared_ptr<today::object::Node> {
14581458 calledResolver = true ;
14591459 return nullptr ;
14601460 });
@@ -1503,7 +1503,7 @@ TEST_F(TodayServiceCase, SubscribeNodeChangeMatchingVariable)
15031503 variables.emplace_back (" taskId" , response::Value (" ZmFrZVRhc2tJZA==" s));
15041504 auto state = std::make_shared<today::RequestState>(14 );
15051505 auto subscriptionObject = std::make_shared<today::NodeChange>(
1506- [this ](const std::shared_ptr<service::RequestState>& state,
1506+ [](const std::shared_ptr<service::RequestState>& state,
15071507 response::IdType&& idArg) -> std::shared_ptr<today::object::Node> {
15081508 EXPECT_EQ (14 , std::static_pointer_cast<today::RequestState>(state)->requestId )
15091509 << " should pass the RequestState to the subscription resolvers" ;
@@ -1917,7 +1917,7 @@ TEST_F(TodayServiceCase, SubscribeUnsubscribeNotificationsAsync)
19171917 today::NextAppointmentChange::getCount (service::ResolverContext::NotifyUnsubscribe);
19181918 auto key = _service
19191919 ->subscribe ({
1920- [&calledCallback](response::Value&& response) {
1920+ [&calledCallback](response::Value&& /* response */ ) {
19211921 calledCallback = true ;
19221922 },
19231923 std::move (query),
@@ -1970,7 +1970,7 @@ TEST_F(TodayServiceCase, SubscribeUnsubscribeNotificationsDeferred)
19701970 const auto notifyUnsubscribeBegin =
19711971 today::NextAppointmentChange::getCount (service::ResolverContext::NotifyUnsubscribe);
19721972 auto key = _service
1973- ->subscribe ({ [&calledCallback](response::Value&& response) {
1973+ ->subscribe ({ [&calledCallback](response::Value&& /* response */ ) {
19741974 calledCallback = true ;
19751975 },
19761976 std::move (query),
0 commit comments