1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-05 11:24:15 +00:00

Make method const

This commit is contained in:
Chocobo1 2017-05-09 14:21:55 +08:00
parent b4baeaaf23
commit 446b3307f9
3 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ namespace
{
}
T operator()(T val)
T operator()(T val) const
{
return val <= m_limit ? m_ret : val;
}

View File

@ -84,7 +84,7 @@ TrackerEntry &TrackerEntry::operator=(const TrackerEntry &other)
return *this;
}
bool TrackerEntry::operator==(const TrackerEntry &other)
bool TrackerEntry::operator==(const TrackerEntry &other) const
{
return (QUrl(url()) == QUrl(other.url()));
}

View File

@ -60,7 +60,7 @@ namespace BitTorrent
void setTier(int value);
TrackerEntry &operator=(const TrackerEntry &other);
bool operator==(const TrackerEntry &other);
bool operator==(const TrackerEntry &other) const;
libtorrent::announce_entry nativeEntry() const;