From 035299f23a9207bb521b19e2f77154c276cf3033 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 23 Mar 2025 14:21:12 +0000 Subject: Other objects support in removeAll/clear removeAll requires a type that is one of Others, clear clears everything regardless of type. --- ui/builders/join.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/builders/join.cpp') diff --git a/ui/builders/join.cpp b/ui/builders/join.cpp index 161b081..f6cbce5 100644 --- a/ui/builders/join.cpp +++ b/ui/builders/join.cpp @@ -18,7 +18,7 @@ BuilderJoin::move(Network * network, const GeoData *, const SDL_MouseMotionEvent candidateLinks = network->candidateJoins(p1->pos, p->pos); } else { - candidateLinks.removeAll(); + candidateLinks.clear(); } } } @@ -33,7 +33,7 @@ BuilderJoin::click( if (p1) { create(network, geoData, p1, p); p1.reset(); - candidateLinks.removeAll(); + candidateLinks.clear(); } else { p1 = p; -- cgit v1.2.3