LibWeb: Fix a few const-ness issues

This commit is contained in:
Matthew Olsson 2023-02-25 10:44:51 -07:00 committed by Linus Groh
commit c0b2fa74ac
Notes: sideshowbarker 2024-07-16 23:21:29 +09:00
36 changed files with 123 additions and 121 deletions

View file

@ -24,6 +24,12 @@ public:
// https://w3c.github.io/FileAPI/#dfn-length
unsigned long length() const { return m_files.size(); }
// https://w3c.github.io/FileAPI/#dfn-item
File* item(size_t index)
{
return index < m_files.size() ? m_files[index].ptr() : nullptr;
}
// https://w3c.github.io/FileAPI/#dfn-item
File const* item(size_t index) const
{