AK: Make JsonValue::as_string_or() const

This commit is contained in:
Max Wipfli 2021-06-29 11:12:48 +02:00 committed by Andreas Kling
parent 53480180cb
commit 13b2067da6

View file

@ -69,7 +69,7 @@ public:
template<typename Builder>
void serialize(Builder&) const;
String as_string_or(const String& alternative)
String as_string_or(String const& alternative) const
{
if (is_string())
return as_string();