mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-06 16:09:30 +00:00
AK: Make JsonValue::as_string_or() const
This commit is contained in:
parent
53480180cb
commit
13b2067da6
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue