mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
HackStudio: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
@@ -35,11 +35,7 @@ NonnullOwnPtr<ProjectConfig> ProjectConfig::create_empty()
|
||||
|
||||
Optional<DeprecatedString> ProjectConfig::read_key(DeprecatedString key_name) const
|
||||
{
|
||||
auto const& value = m_config.get_deprecated(key_name);
|
||||
if (!value.is_string())
|
||||
return {};
|
||||
|
||||
return { value.as_string() };
|
||||
return m_config.get_deprecated_string(key_name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user