mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
AK: Make JsonValue::as_string_or() const
This commit is contained in:
parent
53480180cb
commit
13b2067da6
Notes:
sideshowbarker
2024-07-18 11:21:35 +09:00
Author: https://github.com/MaxWipfli
Commit: 13b2067da6
Pull-request: https://github.com/SerenityOS/serenity/pull/8293
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
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