Convert almost all IdleRegister::add() calls to add(std::function<>)

This commit is contained in:
Flössie
2019-01-01 15:53:39 +01:00
parent 5af3f64a9d
commit b08fb04dae
22 changed files with 574 additions and 610 deletions

View File

@@ -375,14 +375,13 @@ void BlackWhite::BWChanged (double redbw, double greenbw, double bluebw)
nextgreenbw = greenbw;
nextbluebw = bluebw;
const auto func =
[](BlackWhite* self) -> bool
idle_register.add(
[this]() -> bool
{
self->BWComputed_();
BWComputed_();
return false;
};
idle_register.add<BlackWhite>(func, this, false);
}
);
}
bool BlackWhite::BWComputed_ ()