Remove unneded capture of 'this'.

This commit is contained in:
Atgeirr Flø Rasmussen 2024-12-20 14:02:22 +01:00
parent 032b296836
commit 939f944b86

View File

@ -358,12 +358,11 @@ public:
wmatcher,
this->wellModel_().wellOpenTimes(),
this->wellModel_().wellCloseTimes(),
[this, reportStep, schedule, timeStep](const std::string& name)
[timeStep, &wg_events = schedule[reportStep].wellgroup_events()](const std::string& name)
{
if (timeStep != 0) {
return false;
}
const auto& wg_events = schedule[reportStep].wellgroup_events();
return wg_events.hasEvent(name, ScheduleEvents::REQUEST_OPEN_WELL);
});