mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Drop implicit conversions between InfoHash and QString
This commit is contained in:
@@ -295,7 +295,7 @@ void Tracker::processAnnounceRequest()
|
||||
if (infoHashIter == queryParams.end())
|
||||
throw TrackerError("Missing \"info_hash\" parameter");
|
||||
|
||||
const InfoHash infoHash(infoHashIter->toHex());
|
||||
const auto infoHash = InfoHash::fromString(infoHashIter->toHex());
|
||||
if (!infoHash.isValid())
|
||||
throw TrackerError("Invalid \"info_hash\" parameter");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user