mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibGUI: Fix compiler warnings.
This commit is contained in:
@@ -23,10 +23,10 @@ struct GFileSystemModel::Node {
|
||||
GModelIndex index(const GFileSystemModel& model) const
|
||||
{
|
||||
if (!parent)
|
||||
return model.create_index(0, 0, (void*)this);
|
||||
return model.create_index(0, 0, const_cast<Node*>(this));
|
||||
for (int row = 0; row < parent->children.size(); ++row) {
|
||||
if (parent->children[row] == this)
|
||||
return model.create_index(row, 0, (void*)this);
|
||||
return model.create_index(row, 0, const_cast<Node*>(this));
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user