mirror of https://github.com/stella-emu/stella.git
Fix some warnings from clang.
This commit is contained in:
parent
6dbc6676be
commit
e6dae567f9
|
@ -100,7 +100,6 @@ class RamWidget : public Widget, public CommandSender
|
||||||
DataGridWidget* myRamGrid{nullptr};
|
DataGridWidget* myRamGrid{nullptr};
|
||||||
DataGridWidget* myHexValue{nullptr};
|
DataGridWidget* myHexValue{nullptr};
|
||||||
DataGridWidget* myDecValue{nullptr};
|
DataGridWidget* myDecValue{nullptr};
|
||||||
DataGridWidget* mySignValue{nullptr};
|
|
||||||
DataGridWidget* myBinValue{nullptr};
|
DataGridWidget* myBinValue{nullptr};
|
||||||
EditTextWidget* myLabel{nullptr};
|
EditTextWidget* myLabel{nullptr};
|
||||||
|
|
||||||
|
|
|
@ -142,9 +142,9 @@ void CheckListWidget::drawWidget(bool hilite)
|
||||||
|
|
||||||
// Only draw the caret while editing, and if it's in the current viewport
|
// Only draw the caret while editing, and if it's in the current viewport
|
||||||
if(_editMode &&
|
if(_editMode &&
|
||||||
(!(_useScrollbar) ||
|
(!_useScrollbar ||
|
||||||
(_selectedItem >= _scrollBar->_currentPos) &&
|
((_selectedItem >= _scrollBar->_currentPos) &&
|
||||||
(_selectedItem < _scrollBar->_currentPos + _rows)))
|
(_selectedItem < _scrollBar->_currentPos + _rows))))
|
||||||
drawCaret();
|
drawCaret();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,9 +109,9 @@ void StringListWidget::drawWidget(bool hilite)
|
||||||
|
|
||||||
// Only draw the caret while editing, and if it's in the current viewport
|
// Only draw the caret while editing, and if it's in the current viewport
|
||||||
if(_editMode &&
|
if(_editMode &&
|
||||||
(!(_useScrollbar) ||
|
(!_useScrollbar ||
|
||||||
(_selectedItem >= _scrollBar->_currentPos) &&
|
((_selectedItem >= _scrollBar->_currentPos) &&
|
||||||
(_selectedItem < _scrollBar->_currentPos + _rows)))
|
(_selectedItem < _scrollBar->_currentPos + _rows))))
|
||||||
drawCaret();
|
drawCaret();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue