mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 08:32:31 -06:00
Use default constructor, destructor
This commit is contained in:
@@ -338,7 +338,7 @@ TorrentImpl::TorrentImpl(SessionImpl *session, lt::session *nativeSession
|
||||
// == END UPGRADE CODE ==
|
||||
}
|
||||
|
||||
TorrentImpl::~TorrentImpl() {}
|
||||
TorrentImpl::~TorrentImpl() = default;
|
||||
|
||||
bool TorrentImpl::isValid() const
|
||||
{
|
||||
|
||||
@@ -66,12 +66,6 @@ TorrentInfo::TorrentInfo(const lt::torrent_info &nativeInfo)
|
||||
}
|
||||
}
|
||||
|
||||
TorrentInfo::TorrentInfo(const TorrentInfo &other)
|
||||
: m_nativeInfo {other.m_nativeInfo}
|
||||
, m_nativeIndexes {other.m_nativeIndexes}
|
||||
{
|
||||
}
|
||||
|
||||
TorrentInfo &TorrentInfo::operator=(const TorrentInfo &other)
|
||||
{
|
||||
if (this != &other)
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace BitTorrent
|
||||
|
||||
public:
|
||||
TorrentInfo() = default;
|
||||
TorrentInfo(const TorrentInfo &other);
|
||||
TorrentInfo(const TorrentInfo &other) = default;
|
||||
|
||||
explicit TorrentInfo(const lt::torrent_info &nativeInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user