Use the correct type when referring to info hash

This commit is contained in:
Chocobo1
2020-11-30 14:39:03 +08:00
committed by sledgehammer999
parent 5f34d1555b
commit 177ac32a5e
12 changed files with 152 additions and 160 deletions

View File

@@ -38,7 +38,7 @@ namespace BitTorrent
class InfoHash
{
public:
InfoHash();
InfoHash() = default;
InfoHash(const lt::sha1_hash &nativeHash);
InfoHash(const QString &hashString);
InfoHash(const InfoHash &other) = default;
@@ -54,7 +54,7 @@ namespace BitTorrent
operator QString() const;
private:
bool m_valid;
bool m_valid = false;
lt::sha1_hash m_nativeHash;
QString m_hashString;
};