mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00: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:
parent
104be6c8ac
commit
8a48246ed1
168 changed files with 1280 additions and 1280 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue