mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibJS: Convert EnvironmentRecord & friends to east-const style
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 11:56:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/46f2c230305
@@ -21,7 +21,7 @@ void ObjectEnvironmentRecord::visit_edges(Cell::Visitor& visitor)
|
||||
visitor.visit(&m_object);
|
||||
}
|
||||
|
||||
Optional<Variable> ObjectEnvironmentRecord::get_from_scope(const FlyString& name) const
|
||||
Optional<Variable> ObjectEnvironmentRecord::get_from_scope(FlyString const& name) const
|
||||
{
|
||||
auto value = m_object.get(name);
|
||||
if (value.is_empty())
|
||||
@@ -29,7 +29,7 @@ Optional<Variable> ObjectEnvironmentRecord::get_from_scope(const FlyString& name
|
||||
return Variable { value, DeclarationKind::Var };
|
||||
}
|
||||
|
||||
void ObjectEnvironmentRecord::put_to_scope(const FlyString& name, Variable variable)
|
||||
void ObjectEnvironmentRecord::put_to_scope(FlyString const& name, Variable variable)
|
||||
{
|
||||
m_object.put(name, variable.value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user