mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
GModel: Have create_index() take a const void*
This is just for convenience really. It lets you skip const_casting in all the code that calls this API, which you would basically always be doing otherwise.
This commit is contained in:
parent
203612439a
commit
f6cb2fd2fb
2 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ protected:
|
|||
void for_each_view(Function<void(GAbstractView&)>);
|
||||
void did_update();
|
||||
|
||||
GModelIndex create_index(int row, int column, void* data = nullptr) const;
|
||||
GModelIndex create_index(int row, int column, const void* data = nullptr) const;
|
||||
|
||||
private:
|
||||
HashTable<GAbstractView*> m_views;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue