mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Use 'auto' to avoid duplicating the type name
This commit is contained in:
@@ -117,7 +117,7 @@ void ArticleListWidget::checkInvariant() const
|
||||
QListWidgetItem *ArticleListWidget::createItem(RSS::Article *article) const
|
||||
{
|
||||
Q_ASSERT(article);
|
||||
QListWidgetItem *item = new QListWidgetItem;
|
||||
auto *item = new QListWidgetItem;
|
||||
|
||||
item->setData(Qt::DisplayRole, article->title());
|
||||
item->setData(Qt::UserRole, reinterpret_cast<quintptr>(article));
|
||||
|
||||
Reference in New Issue
Block a user