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:
parent
fe67407f74
commit
f52e8f76c6
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue