Browse Source

Remove redundant initialization

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
e1be46820b
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 1
      src/base/torrentfileguard.cpp
  2. 3
      src/base/torrentfilter.cpp
  3. 2
      src/gui/fspathedit_p.cpp
  4. 3
      src/gui/properties/trackerlistwidget.cpp
  5. 1
      src/gui/rss/automatedrssdownloader.cpp
  6. 3
      src/gui/transferlistfilters/categoryfiltermodel.cpp

1
src/base/torrentfileguard.cpp

@ -59,7 +59,6 @@ FileGuard::~FileGuard()
TorrentFileGuard::TorrentFileGuard(const Path &path, const TorrentFileGuard::AutoDeleteMode mode) TorrentFileGuard::TorrentFileGuard(const Path &path, const TorrentFileGuard::AutoDeleteMode mode)
: FileGuard {mode != Never ? path : Path()} : FileGuard {mode != Never ? path : Path()}
, m_mode {mode} , m_mode {mode}
, m_wasAdded {false}
{ {
} }

3
src/base/torrentfilter.cpp

@ -62,8 +62,7 @@ TorrentFilter::TorrentFilter(const Type type, const std::optional<TorrentIDSet>
TorrentFilter::TorrentFilter(const QString &filter, const std::optional<TorrentIDSet> &idSet TorrentFilter::TorrentFilter(const QString &filter, const std::optional<TorrentIDSet> &idSet
, const std::optional<QString> &category, const std::optional<QString> &tag) , const std::optional<QString> &category, const std::optional<QString> &tag)
: m_type(All) : m_category(category)
, m_category(category)
, m_tag(tag) , m_tag(tag)
, m_idSet(idSet) , m_idSet(idSet)
{ {

2
src/gui/fspathedit_p.cpp

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

3
src/gui/properties/trackerlistwidget.cpp

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

1
src/gui/rss/automatedrssdownloader.cpp

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

3
src/gui/transferlistfilters/categoryfiltermodel.cpp

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

Loading…
Cancel
Save