mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
LibGUI+Applications: Rename Model::is_valid to is_within_range
The previous name did not describe what the function checked, and was easy to confuse with ModelIndex::is_valid.
This commit is contained in:
parent
9899addb1d
commit
16ac3bbfd7
8 changed files with 18 additions and 18 deletions
|
@ -54,7 +54,7 @@ String DevicesModel::column_name(int column) const
|
|||
|
||||
GUI::Variant DevicesModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) const
|
||||
{
|
||||
VERIFY(is_valid(index));
|
||||
VERIFY(is_within_range(index));
|
||||
|
||||
if (role == GUI::ModelRole::TextAlignment) {
|
||||
switch (index.column()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue