From 44f0a63354a44419555113fdf37fd4bb43344272 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 8 Aug 2023 22:27:25 +0800 Subject: [PATCH 1/2] Remove unused include --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 659789580..b8cba69ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,6 @@ set(minLibtorrent1Version 1.2.19) set(minLibtorrentVersion 2.0.9) set(minZlibVersion 1.2.11) -include(CheckCXXSourceCompiles) # TODO: migrate to CheckSourceCompiles in CMake >= 3.19 include(GNUInstallDirs) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules) From 870bcc7a19e8979d3d6dbde8ff76dd93380829f3 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 8 Aug 2023 22:31:39 +0800 Subject: [PATCH 2/2] Switch to QHash --- src/base/bittorrent/trackerentry.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/base/bittorrent/trackerentry.h b/src/base/bittorrent/trackerentry.h index 502a8b096..a21ecc2a6 100644 --- a/src/base/bittorrent/trackerentry.h +++ b/src/base/bittorrent/trackerentry.h @@ -33,7 +33,6 @@ #include #include #include -#include #include #include @@ -64,8 +63,7 @@ namespace BitTorrent QString url {}; int tier = 0; - // TODO: Use QHash> once Qt5 is dropped. - QMap> stats {}; + QHash> stats {}; // Deprecated fields Status status = NotContacted;