mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 15:12:32 -06:00
Make TorrentInfo immutable
This commit is contained in:
@@ -289,6 +289,7 @@ namespace BitTorrent
|
||||
lt::torrent_status m_nativeStatus;
|
||||
TorrentState m_state = TorrentState::Unknown;
|
||||
TorrentInfo m_torrentInfo;
|
||||
QStringList m_filePaths;
|
||||
SpeedMonitor m_speedMonitor;
|
||||
|
||||
InfoHash m_infoHash;
|
||||
@@ -301,12 +302,6 @@ namespace BitTorrent
|
||||
|
||||
MaintenanceJob m_maintenanceJob = MaintenanceJob::None;
|
||||
|
||||
#ifndef QBT_USES_LIBTORRENT2
|
||||
// Until libtorrent provided an "old_name" field in `file_renamed_alert`
|
||||
// we relied on this workaround to remove empty leftover folders
|
||||
QHash<int, QVector<QString>> m_oldPath;
|
||||
#endif
|
||||
|
||||
QHash<QString, QMap<lt::tcp::endpoint, int>> m_trackerPeerCounts;
|
||||
FileErrorInfo m_lastFileError;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user