1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +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)
{
auto children = parent->children();
std::remove(children.begin(), children.end(), root);
std::erase(children, root);
parent->setChildren(children);
root->widget()->detachFromWidget();
}