From b0d1b6a1fb153ed53d398a8c31ae8fce9024ea95 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 6 Jul 2025 21:56:46 +0400 Subject: [PATCH] code review --- src/gui/transferlistdelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/transferlistdelegate.cpp b/src/gui/transferlistdelegate.cpp index dce4548bd..d6d070857 100644 --- a/src/gui/transferlistdelegate.cpp +++ b/src/gui/transferlistdelegate.cpp @@ -36,7 +36,7 @@ TransferListDelegate::TransferListDelegate(QObject *parent) : QStyledItemDelegate {parent} { - m_stateThemeColors = m_stateThemeColors = Utils::Gui::torrentStateToColorHash(); + m_stateThemeColors = Utils::Gui::torrentStateToColorHash(); } QWidget *TransferListDelegate::createEditor(QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const @@ -92,7 +92,7 @@ void TransferListDelegate::paint(QPainter *painter, const QStyleOptionViewItem & QStyleOptionViewItem customOption {option}; customOption.state.setFlag(QStyle::State_Enabled, isEnableState(torrentState)); - QColor color = nullptr; + QColor color = {}; if (torrentState != TorrentState::Unknown) { color = m_stateThemeColors.value(torrentState);