Skip to content

Commit

Permalink
Merge pull request #334 from canonical/fix-remove
Browse files Browse the repository at this point in the history
g++14 says "code looks wrong", I concur
  • Loading branch information
hbatagelo authored Mar 19, 2024
2 parents c366186 + 5c812e5 commit 26c5a8c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/wlr_foreign_toplevel_management_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ ForeignToplevelHandle::ForeignToplevelHandle(zwlr_foreign_toplevel_handle_v1* ha
wl_output* output)
{
auto self = get_self(data);
std::remove(
self->outputs_.begin(),
self->outputs_.end(),
output);
std::erase(self->outputs_, output);
self->dirty_ = true;
},
[] /*state */ (
Expand Down

0 comments on commit 26c5a8c

Please sign in to comment.