mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
AK: Make JsonValue::as_string_or() const
This commit is contained in:
parent
53480180cb
commit
13b2067da6
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ public:
|
||||||
template<typename Builder>
|
template<typename Builder>
|
||||||
void serialize(Builder&) const;
|
void serialize(Builder&) const;
|
||||||
|
|
||||||
String as_string_or(const String& alternative)
|
String as_string_or(String const& alternative) const
|
||||||
{
|
{
|
||||||
if (is_string())
|
if (is_string())
|
||||||
return as_string();
|
return as_string();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue