mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +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
|
@ -27,7 +27,7 @@ public:
|
|||
void for_each_tool(Callback callback)
|
||||
{
|
||||
for (auto& tool : m_tools)
|
||||
callback(tool);
|
||||
callback(*tool);
|
||||
}
|
||||
|
||||
Tool* active_tool() const { return m_active_tool; }
|
||||
|
@ -40,7 +40,7 @@ private:
|
|||
explicit ToolboxWidget();
|
||||
RefPtr<GUI::Toolbar> m_toolbar;
|
||||
GUI::ActionGroup m_action_group;
|
||||
NonnullOwnPtrVector<Tool> m_tools;
|
||||
Vector<NonnullOwnPtr<Tool>> m_tools;
|
||||
Tool* m_active_tool { nullptr };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue