1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

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

This commit is contained in:
Evil Eye 2023-11-29 16:59:01 +01:00
parent fe67407f74
commit f52e8f76c6

View file

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