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:
parent
520be826c0
commit
ad2315fdea
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue