Skip to content

Commit 83f5f23

Browse files
committed
Fix Linux build warnings
1 parent fd70d52 commit 83f5f23

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Plugins/SpikeViewer/SpikeDisplay.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ bool SpikeDisplay::getMonitorStateForPlot (int plotNum)
249249
{
250250
if (spikePlots.size() > plotNum)
251251
return spikePlots[plotNum]->getMonitorState();
252+
else
253+
return false;
252254
}
253255

254256
void SpikeDisplay::setMonitorStateForPlot (int plotNum, bool state)

Source/UI/DefaultConfig.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ bool DefaultConfigComponent::keyPressed (const KeyPress& key, Component* origina
273273
neuropixelsButton->setToggleState (true, sendNotification);
274274
fileReaderButton->setToggleState (false, sendNotification);
275275
}
276-
277-
return true;
278276
}
279277
// Handle right/shift+tab key presses to move right
280278
else if (key == KeyPress::leftKey || key == KeyPress(KeyPress::tabKey, ModifierKeys::shiftModifier, 0))
@@ -289,13 +287,12 @@ bool DefaultConfigComponent::keyPressed (const KeyPress& key, Component* origina
289287
acqBoardButton->setToggleState (true, sendNotification);
290288
fileReaderButton->setToggleState (false, sendNotification);
291289
}
292-
293-
return true;
294290
}
295291
// Handle return key presses to trigger the load button
296292
else if (key == KeyPress::returnKey)
297293
{
298294
goButton->triggerClick();
299-
return true;
300295
}
296+
297+
return true;
301298
}

0 commit comments

Comments
 (0)