1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

LibWeb: Port supported property names from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-11-21 07:39:58 +13:00 committed by Tim Flynn
parent 66ac0d88a3
commit 629f661e3b
19 changed files with 59 additions and 59 deletions

View file

@ -149,13 +149,13 @@ void Storage::broadcast(StringView key, StringView old_value, StringView new_val
// FIXME: Implement.
}
Vector<DeprecatedString> Storage::supported_property_names() const
Vector<String> Storage::supported_property_names() const
{
// The supported property names on a Storage object storage are the result of running get the keys on storage's map.
Vector<DeprecatedString> names;
Vector<String> names;
names.ensure_capacity(m_map.size());
for (auto const& key : m_map.keys())
names.unchecked_append(key.to_deprecated_string());
names.unchecked_append(key);
return names;
}