1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-19 15:09:43 +00:00

Merge branch 'erasechildren' into 'master'

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

See merge request OpenMW/openmw!3627
This commit is contained in:
jvoisin 2023-11-30 15:25:32 +00:00
commit ee4993b462

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();
}