mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibGUI: Use Object::remove_all_children() in BreadcrumbBar (#4580)
This commit is contained in:
parent
d1891f67ac
commit
d1366b660e
1 changed files with 1 additions and 5 deletions
|
@ -57,11 +57,7 @@ BreadcrumbBar::~BreadcrumbBar()
|
||||||
void BreadcrumbBar::clear_segments()
|
void BreadcrumbBar::clear_segments()
|
||||||
{
|
{
|
||||||
m_segments.clear();
|
m_segments.clear();
|
||||||
|
remove_all_children();
|
||||||
// FIXME: Should Core::Object have something like "remove_all_children()" perhaps?
|
|
||||||
auto children = this->children();
|
|
||||||
for (auto& child : children)
|
|
||||||
child.remove_from_parent();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BreadcrumbBar::append_segment(const String& text, const Gfx::Bitmap* icon, const String& data)
|
void BreadcrumbBar::append_segment(const String& text, const Gfx::Bitmap* icon, const String& data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue