mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03: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: https://github.com/SerenityOS/serenity/commit/13b2067da6e Pull-request: https://github.com/SerenityOS/serenity/pull/8293 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
@ -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 New Issue
Block a user