summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/Debugger/VariablesModel.h
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-05-25 14:13:19 +0000
committerAndreas Kling <kling@serenityos.org>2021-08-06 19:14:31 +0200
commitca2c81251a7d036f586f3d0a32bc35e2b9f93144 (patch)
tree130d63311e74c262c5cf685418ab701d7aa27165 /Userland/DevTools/HackStudio/Debugger/VariablesModel.h
parent5cd2e0f3a26fb4e548c11056e6ec962392e50f15 (diff)
downloadserenity-ca2c81251a7d036f586f3d0a32bc35e2b9f93144.zip
Everywhere: Replace Model::update() with Model::invalidate()
Most of the models were just calling did_update anyway, which is pointless since it can be unified to the base Model class. Instead, code calling update() will now call invalidate(), which functions identically and is more obvious in what it does. Additionally, a default implementation is provided, which removes the need to add empty implementations of update() for each model subclass. Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
Diffstat (limited to 'Userland/DevTools/HackStudio/Debugger/VariablesModel.h')
-rw-r--r--Userland/DevTools/HackStudio/Debugger/VariablesModel.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/Debugger/VariablesModel.h b/Userland/DevTools/HackStudio/Debugger/VariablesModel.h
index 5b028f910b..a6856b99e1 100644
--- a/Userland/DevTools/HackStudio/Debugger/VariablesModel.h
+++ b/Userland/DevTools/HackStudio/Debugger/VariablesModel.h
@@ -23,7 +23,6 @@ public:
virtual int row_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override;
virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return 1; }
virtual GUI::Variant data(const GUI::ModelIndex& index, GUI::ModelRole role) const override;
- virtual void update() override;
virtual GUI::ModelIndex parent_index(const GUI::ModelIndex&) const override;
virtual GUI::ModelIndex index(int row, int column = 0, const GUI::ModelIndex& = GUI::ModelIndex()) const override;