Remove redundant initialization

This commit is contained in:
Chocobo1
2023-05-05 01:58:03 +08:00
parent 8219b1f695
commit e1be46820b
6 changed files with 3 additions and 10 deletions

View File

@@ -152,8 +152,6 @@ Private::FileLineEdit::FileLineEdit(QWidget *parent)
: QLineEdit {parent}
, m_completerModel {new QFileSystemModel(this)}
, m_completer {new QCompleter(this)}
, m_browseAction {nullptr}
, m_warningAction {nullptr}
{
m_iconProvider.setOptions(QFileIconProvider::DontUseCustomDirectoryIcons);

View File

@@ -58,8 +58,7 @@
#define NB_STICKY_ITEM 3
TrackerListWidget::TrackerListWidget(PropertiesWidget *properties)
: QTreeWidget()
, m_properties(properties)
: m_properties(properties)
{
// Set header
// Must be set before calling loadSettings() otherwise the header is reset on restart

View File

@@ -64,7 +64,6 @@ AutomatedRssDownloader::AutomatedRssDownloader(QWidget *parent)
, m_formatFilterJSON(u"%1 (*%2)"_qs.arg(tr("Rules"), EXT_JSON))
, m_formatFilterLegacy(u"%1 (*%2)"_qs.arg(tr("Rules (legacy)"), EXT_LEGACY))
, m_ui(new Ui::AutomatedRssDownloader)
, m_currentRuleItem(nullptr)
, m_storeDialogSize {u"RssFeedDownloader/geometrySize"_qs}
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
, m_storeHSplitterSize {u"GUI/Qt6/RSSFeedDownloader/HSplitterSizes"_qs}

View File

@@ -41,8 +41,7 @@ public:
CategoryModelItem() = default;
CategoryModelItem(CategoryModelItem *parent, QString categoryName, int torrentsCount = 0)
: m_parent(nullptr)
, m_name(categoryName)
: m_name(categoryName)
, m_torrentsCount(torrentsCount)
{
if (parent)