summaryrefslogtreecommitdiff
path: root/Userland/Games
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-06 17:16:25 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-06 23:46:35 +0100
commit359d6e7b0b0ef7add9eb2015d0dd664a82cf73d7 (patch)
treebe51963e0f0dc7e1eeeb670188c8fe1fa5eea37f /Userland/Games
parent689ca370d4eca80eb5c3856a69c3eed4ed848a29 (diff)
downloadserenity-359d6e7b0b0ef7add9eb2015d0dd664a82cf73d7.zip
Everywhere: Stop using NonnullOwnPtrVector
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
Diffstat (limited to 'Userland/Games')
-rw-r--r--Userland/Games/GameOfLife/BoardWidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/GameOfLife/BoardWidget.h b/Userland/Games/GameOfLife/BoardWidget.h
index ef185cb5b9..1bc8b0006d 100644
--- a/Userland/Games/GameOfLife/BoardWidget.h
+++ b/Userland/Games/GameOfLife/BoardWidget.h
@@ -56,7 +56,7 @@ public:
void for_each_pattern(Callback callback)
{
for (auto& pattern : m_patterns)
- callback(pattern);
+ callback(*pattern);
}
void run_generation();
@@ -78,7 +78,7 @@ private:
Board::RowAndColumn m_last_cell_toggled {};
Board::RowAndColumn m_last_cell_hovered {};
Pattern* m_selected_pattern { nullptr };
- NonnullOwnPtrVector<Pattern> m_patterns;
+ Vector<NonnullOwnPtr<Pattern>> m_patterns;
NonnullOwnPtr<Board> m_board;