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
Notes: sideshowbarker 2024-07-18 11:21:35 +09:00

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();