diff --git a/AK/JsonObject.h b/AK/JsonObject.h index c127887b374..73d0941c11c 100644 --- a/AK/JsonObject.h +++ b/AK/JsonObject.h @@ -78,7 +78,7 @@ public: return value ? *value : JsonValue(JsonValue::Type::Null); } - JsonValue get_or(const String& key, JsonValue alternative) const + JsonValue get_or(const String& key, const JsonValue& alternative) const { auto* value = get_ptr(key); return value ? *value : alternative;