aports/community/wlcs/gcc14.patch
2024-09-08 02:51:37 -07:00

26 lines
1 KiB
Diff

From 5c812e560052e2cbff4c6d26439935020ddee52f Mon Sep 17 00:00:00 2001
From: Alan Griffiths <alan@octopull.co.uk>
Date: Tue, 19 Mar 2024 10:30:13 +0000
Subject: [PATCH] "remove"? I don't think that algorithm does what you think it
does
---
tests/wlr_foreign_toplevel_management_v1.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tests/wlr_foreign_toplevel_management_v1.cpp b/tests/wlr_foreign_toplevel_management_v1.cpp
index b824d3db..b7a59de9 100644
--- a/tests/wlr_foreign_toplevel_management_v1.cpp
+++ b/tests/wlr_foreign_toplevel_management_v1.cpp
@@ -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 */ (