mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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: 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
1 changed files with 1 additions and 1 deletions
|
@ -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