mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Use default operators generated/synthesized by compiler
This commit is contained in:
@@ -67,12 +67,9 @@ struct PeerEndpoint
|
||||
{
|
||||
BitTorrent::PeerAddress address;
|
||||
QString connectionType; // matches return type of `PeerInfo::connectionType()`
|
||||
};
|
||||
|
||||
bool operator==(const PeerEndpoint &left, const PeerEndpoint &right)
|
||||
{
|
||||
return (left.address == right.address) && (left.connectionType == right.connectionType);
|
||||
}
|
||||
friend bool operator==(const PeerEndpoint &left, const PeerEndpoint &right) = default;
|
||||
};
|
||||
|
||||
std::size_t qHash(const PeerEndpoint &peerEndpoint, const std::size_t seed = 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user