mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Implement proper equal operators
This commit is contained in:
@@ -52,12 +52,13 @@ namespace BitTorrent
|
||||
QByteArray peerId;
|
||||
int port;
|
||||
|
||||
bool operator!=(const Peer &other) const;
|
||||
bool operator==(const Peer &other) const;
|
||||
QString uid() const;
|
||||
lt::entry toEntry(bool noPeerId) const;
|
||||
};
|
||||
|
||||
bool operator==(const Peer &left, const Peer &right);
|
||||
bool operator!=(const Peer &left, const Peer &right);
|
||||
|
||||
struct TrackerAnnounceRequest
|
||||
{
|
||||
QByteArray infoHash;
|
||||
|
||||
Reference in New Issue
Block a user