mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Fix a few const-ness issues
This commit is contained in:
parent
70a2ca7fc0
commit
c0b2fa74ac
Notes:
sideshowbarker
2024-07-16 23:21:29 +09:00
Author: https://github.com/mattco98
Commit: c0b2fa74ac
Pull-request: https://github.com/SerenityOS/serenity/pull/17620
Issue: https://github.com/SerenityOS/serenity/issues/16988
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/linusg
36 changed files with 123 additions and 121 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue