1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 20:17:34 +00:00

HackStudio: Replace uses of JsonObject::get_deprecated()/get_ptr()

This commit is contained in:
Sam Atkins 2022-12-21 20:42:44 +00:00 committed by Tim Flynn
parent 6fdfa9f313
commit 141aa37eda

View file

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