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:
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…
Reference in New Issue
Block a user