summaryrefslogtreecommitdiff
path: root/ui/builders/straight.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-23 14:21:12 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-23 14:21:12 +0000
commit035299f23a9207bb521b19e2f77154c276cf3033 (patch)
tree33d24274a6eb716d1d92f9bff074c3e81b8fb71e /ui/builders/straight.cpp
parentOther objects support in operator= (diff)
downloadilt-035299f23a9207bb521b19e2f77154c276cf3033.tar.bz2
ilt-035299f23a9207bb521b19e2f77154c276cf3033.tar.xz
ilt-035299f23a9207bb521b19e2f77154c276cf3033.zip
Other objects support in removeAll/clear
removeAll requires a type that is one of Others, clear clears everything regardless of type.
Diffstat (limited to 'ui/builders/straight.cpp')
-rw-r--r--ui/builders/straight.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/builders/straight.cpp b/ui/builders/straight.cpp
index 6815689..e7d83b5 100644
--- a/ui/builders/straight.cpp
+++ b/ui/builders/straight.cpp
@@ -20,7 +20,7 @@ BuilderStraight::move(
candidateLinks = network->candidateStraight(*p1, p->first);
}
else {
- candidateLinks.removeAll();
+ candidateLinks.clear();
}
}
}
@@ -34,7 +34,7 @@ BuilderStraight::click(
if (const auto p = geoData->intersectRay(ray)) {
if (p1) {
create(network, geoData, *p1, p->first);
- candidateLinks.removeAll();
+ candidateLinks.clear();
p1.reset();
}
else {
@@ -44,7 +44,7 @@ BuilderStraight::click(
return;
case SDL_BUTTON_MIDDLE:
p1.reset();
- candidateLinks.removeAll();
+ candidateLinks.clear();
return;
}
}