mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57: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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue