mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Everywhere: Stop using NonnullOwnPtrVector
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
This commit is contained in:
@@ -72,7 +72,7 @@ TEST_CASE(key_ordered_iteration)
|
||||
{
|
||||
constexpr auto amount = 10000;
|
||||
IntrusiveRBTree test;
|
||||
NonnullOwnPtrVector<IntrusiveTest> m_entries;
|
||||
Vector<NonnullOwnPtr<IntrusiveTest>> m_entries;
|
||||
Array<int, amount> keys {};
|
||||
|
||||
// generate random key order
|
||||
@@ -105,7 +105,7 @@ TEST_CASE(key_ordered_iteration)
|
||||
TEST_CASE(clear)
|
||||
{
|
||||
IntrusiveRBTree test;
|
||||
NonnullOwnPtrVector<IntrusiveTest> m_entries;
|
||||
Vector<NonnullOwnPtr<IntrusiveTest>> m_entries;
|
||||
for (size_t i = 0; i < 1000; i++) {
|
||||
auto entry = make<IntrusiveTest>(i);
|
||||
test.insert(i, *entry);
|
||||
|
||||
Reference in New Issue
Block a user