diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-06 17:16:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-06 23:46:35 +0100 |
commit | 359d6e7b0b0ef7add9eb2015d0dd664a82cf73d7 (patch) | |
tree | be51963e0f0dc7e1eeeb670188c8fe1fa5eea37f /Tests | |
parent | 689ca370d4eca80eb5c3856a69c3eed4ed848a29 (diff) | |
download | serenity-359d6e7b0b0ef7add9eb2015d0dd664a82cf73d7.zip |
Everywhere: Stop using NonnullOwnPtrVector
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/AK/TestIntrusiveRedBlackTree.cpp | 4 | ||||
-rw-r--r-- | Tests/AK/TestVector.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Tests/AK/TestIntrusiveRedBlackTree.cpp b/Tests/AK/TestIntrusiveRedBlackTree.cpp index 6492c57770..587cede591 100644 --- a/Tests/AK/TestIntrusiveRedBlackTree.cpp +++ b/Tests/AK/TestIntrusiveRedBlackTree.cpp @@ -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); diff --git a/Tests/AK/TestVector.cpp b/Tests/AK/TestVector.cpp index fafa8f5564..6e6fb38e18 100644 --- a/Tests/AK/TestVector.cpp +++ b/Tests/AK/TestVector.cpp @@ -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); |