Skip to content

Commit

Permalink
Merge branch 'erasechildren' into 'master'
Browse files Browse the repository at this point in the history
Use std::erase instead of using std::remove without erasing

See merge request OpenMW/openmw!3627
  • Loading branch information
jvoisin committed Nov 30, 2023
2 parents fe67407 + f52e8f7 commit ee4993b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lua_ui/element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ee4993b

Please sign in to comment.