Merge pull request #5827 from atgeirr/silence-capture-warning

Remove unneded capture of 'this'.
This commit is contained in:
Atgeirr Flø Rasmussen 2024-12-20 15:16:40 +01:00 committed by GitHub
commit dba531e5fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
});