Fix some warnings from clang.

This commit is contained in:
Stephen Anthony 2020-10-15 11:29:58 -02:30
parent 6dbc6676be
commit e6dae567f9
3 changed files with 6 additions and 7 deletions

View File

@ -100,7 +100,6 @@ class RamWidget : public Widget, public CommandSender
DataGridWidget* myRamGrid{nullptr};
DataGridWidget* myHexValue{nullptr};
DataGridWidget* myDecValue{nullptr};
DataGridWidget* mySignValue{nullptr};
DataGridWidget* myBinValue{nullptr};
EditTextWidget* myLabel{nullptr};

View File

@ -142,9 +142,9 @@ void CheckListWidget::drawWidget(bool hilite)
// Only draw the caret while editing, and if it's in the current viewport
if(_editMode &&
(!(_useScrollbar) ||
(_selectedItem >= _scrollBar->_currentPos) &&
(_selectedItem < _scrollBar->_currentPos + _rows)))
(!_useScrollbar ||
((_selectedItem >= _scrollBar->_currentPos) &&
(_selectedItem < _scrollBar->_currentPos + _rows))))
drawCaret();
}

View File

@ -109,9 +109,9 @@ void StringListWidget::drawWidget(bool hilite)
// Only draw the caret while editing, and if it's in the current viewport
if(_editMode &&
(!(_useScrollbar) ||
(_selectedItem >= _scrollBar->_currentPos) &&
(_selectedItem < _scrollBar->_currentPos + _rows)))
(!_useScrollbar ||
((_selectedItem >= _scrollBar->_currentPos) &&
(_selectedItem < _scrollBar->_currentPos + _rows))))
drawCaret();
}