1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibJS: Convert EnvironmentRecord & friends to east-const style

This commit is contained in:
Andreas Kling 2021-06-21 23:26:50 +02:00
parent 6c6dbcfc36
commit 46f2c23030
6 changed files with 14 additions and 16 deletions

View file

@ -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);
}