mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
Everywhere: Stop using NonnullOwnPtrVector
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
This commit is contained in:
parent
689ca370d4
commit
359d6e7b0b
111 changed files with 517 additions and 503 deletions
|
@ -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);
|
||||
|
|
|
@ -288,7 +288,7 @@ TEST_CASE(nonnullownptrvector)
|
|||
struct Object {
|
||||
DeprecatedString string;
|
||||
};
|
||||
NonnullOwnPtrVector<Object> objects;
|
||||
Vector<NonnullOwnPtr<Object>> objects;
|
||||
|
||||
objects.append(make<Object>());
|
||||
EXPECT_EQ(objects.size(), 1u);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue