mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
AK+Userland: Fix some compiler warnings and make variables const-ref
This fixes a few compiler warnings and makes some variables const-ref in preparation for the next commit which changes how ByteBuffer works.
This commit is contained in:
committed by
Andreas Kling
parent
fbdc3b0ee2
commit
f0fa51773a
@@ -13,7 +13,7 @@ Vector<String> MimeData::formats() const
|
||||
{
|
||||
Vector<String> mime_types;
|
||||
mime_types.ensure_capacity(m_data.size());
|
||||
for (auto it : m_data)
|
||||
for (auto& it : m_data)
|
||||
mime_types.unchecked_append(it.key);
|
||||
return mime_types;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user