1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

CapabilityInquiryDemo: Fix unused-variable warning

This commit is contained in:
reuk 2025-03-31 21:57:35 +01:00
parent 520be826c0
commit ad2315fdea
No known key found for this signature in database

View file

@ -2285,10 +2285,9 @@ public:
auto updated = *state;
auto& props = updated.properties;
if (auto* item = props.getSelected())
if (0 <= props.selection)
{
const auto toErase = props.items.begin() + props.selection;
props.items.erase (toErase);
props.items.erase (props.items.begin() + props.selection);
props.selection = -1;
state = std::move (updated);