From add75fbc771e195d6b70ff6b36953f0976baa1a2 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (glassez)" Date: Sat, 24 Jul 2021 15:37:11 +0300 Subject: [PATCH] Make complete type declarations available where needed --- src/gui/mainwindow.cpp | 1 - src/gui/mainwindow.h | 7 ++----- src/gui/transferlistfilterswidget.cpp | 2 -- src/gui/transferlistfilterswidget.h | 5 +++-- src/gui/transferlistwidget.cpp | 1 - src/gui/transferlistwidget.h | 4 +++- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index cac39e4e0..691039586 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -55,7 +55,6 @@ #include "base/bittorrent/session.h" #include "base/bittorrent/sessionstatus.h" -#include "base/bittorrent/torrent.h" #include "base/global.h" #include "base/logger.h" #include "base/net/downloadmanager.h" diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 8fa089adb..12d56ed83 100644 --- a/src/gui/mainwindow.h +++ b/src/gui/mainwindow.h @@ -35,6 +35,8 @@ #include #endif +#include "base/bittorrent/torrent.h" + class QCloseEvent; class QFileSystemWatcher; class QSplitter; @@ -57,11 +59,6 @@ class TorrentCreatorDialog; class TransferListFiltersWidget; class TransferListWidget; -namespace BitTorrent -{ - class Torrent; -} - namespace Net { struct DownloadResult; diff --git a/src/gui/transferlistfilterswidget.cpp b/src/gui/transferlistfilterswidget.cpp index 7210fcef5..042e955b2 100644 --- a/src/gui/transferlistfilterswidget.cpp +++ b/src/gui/transferlistfilterswidget.cpp @@ -38,10 +38,8 @@ #include #include -#include "base/bittorrent/infohash.h" #include "base/bittorrent/session.h" #include "base/bittorrent/torrent.h" -#include "base/bittorrent/trackerentry.h" #include "base/global.h" #include "base/logger.h" #include "base/net/downloadmanager.h" diff --git a/src/gui/transferlistfilterswidget.h b/src/gui/transferlistfilterswidget.h index b47077ead..0a0f39491 100644 --- a/src/gui/transferlistfilterswidget.h +++ b/src/gui/transferlistfilterswidget.h @@ -32,6 +32,9 @@ #include #include +#include "base/bittorrent/infohash.h" +#include "base/bittorrent/trackerentry.h" + class QCheckBox; class QResizeEvent; @@ -40,8 +43,6 @@ class TransferListWidget; namespace BitTorrent { class Torrent; - class TorrentID; - struct TrackerEntry; } namespace Net diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index fba5468ae..e42a144c9 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -44,7 +44,6 @@ #include #include "base/bittorrent/common.h" -#include "base/bittorrent/infohash.h" #include "base/bittorrent/session.h" #include "base/bittorrent/torrent.h" #include "base/bittorrent/trackerentry.h" diff --git a/src/gui/transferlistwidget.h b/src/gui/transferlistwidget.h index ef1400e3b..9257ea15b 100644 --- a/src/gui/transferlistwidget.h +++ b/src/gui/transferlistwidget.h @@ -29,9 +29,12 @@ #pragma once #include + #include #include +#include "base/bittorrent/infohash.h" + class MainWindow; class TransferListModel; class TransferListSortModel; @@ -39,7 +42,6 @@ class TransferListSortModel; namespace BitTorrent { class Torrent; - class TorrentID; } enum class CopyInfohashPolicy