refactor: fix clang-tidy auto*, const&, and curly braces (#5083)
This commit is contained in:
@@ -22,7 +22,9 @@ void SwitcherItemDelegate::paint(QPainter *painter,
|
||||
if (item)
|
||||
{
|
||||
if (option.state & QStyle::State_Selected)
|
||||
{
|
||||
painter->fillRect(option.rect, option.palette.highlight());
|
||||
}
|
||||
|
||||
item->paint(painter, option.rect);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ GenericListView::GenericListView()
|
||||
|
||||
void GenericListView::setModel(QAbstractItemModel *model)
|
||||
{
|
||||
auto casted = dynamic_cast<GenericListModel *>(model);
|
||||
auto *casted = dynamic_cast<GenericListModel *>(model);
|
||||
assert(casted);
|
||||
this->setModel(casted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user