mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
Everywhere: Stop using NonnullRefPtrVector
This class had slightly confusing semantics and the added weirdness doesn't seem worth it just so we can say "." instead of "->" when iterating over a vector of NNRPs. This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8a48246ed1
@@ -139,7 +139,7 @@ JS::ThrowCompletionOr<ResolvedOverload> resolve_overload(JS::VM& vm, IDL::Effect
|
||||
if (type.is_union()) {
|
||||
auto flattened_members = type.as_union().flattened_member_types();
|
||||
for (auto const& member : flattened_members) {
|
||||
if (member.is_nullable())
|
||||
if (member->is_nullable())
|
||||
return true;
|
||||
// FIXME: - a dictionary type
|
||||
// FIXME: - an annotated type whose inner type is one of the above types
|
||||
@@ -351,7 +351,7 @@ JS::ThrowCompletionOr<ResolvedOverload> resolve_overload(JS::VM& vm, IDL::Effect
|
||||
}
|
||||
|
||||
// 18. Otherwise: if there is an entry in S that has any at position i of its type list, then remove from S all other entries.
|
||||
else if (overloads.has_overload_with_matching_argument_at_index(i, [](auto const& type, auto) { return type.is_any(); })) {
|
||||
else if (overloads.has_overload_with_matching_argument_at_index(i, [](auto const& type, auto) { return type->is_any(); })) {
|
||||
overloads.remove_all_other_entries();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user