Use std::erase instead of using std::remove without erasing

macos_ci_fix
Evil Eye 6 months ago
parent fe67407f74
commit f52e8f76c6

@ -99,7 +99,7 @@ namespace LuaUi
if (parent)
{
auto children = parent->children();
std::remove(children.begin(), children.end(), root);
std::erase(children, root);
parent->setChildren(children);
root->widget()->detachFromWidget();
}

Loading…
Cancel
Save