1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:55:08 +00:00

LibGUI: Rename ModelClient::on_model_update() => model_did_update()

This follows the typical client callback naming scheme used elsewhere
and doesn't collide with the "on_foo" Function hook convention.
This commit is contained in:
Andreas Kling 2020-08-13 20:06:14 +02:00
parent 4088beb8eb
commit 686ee2bf04
10 changed files with 30 additions and 17 deletions

View file

@ -56,7 +56,7 @@ void Model::for_each_view(Function<void(AbstractView&)> callback)
void Model::did_update(unsigned flags)
{
for (auto* client : m_clients)
client->on_model_update(flags);
client->model_did_update(flags);
for_each_view([&](auto& view) {
view.did_update_model(flags);