mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Make method const
This commit is contained in:
parent
b4baeaaf23
commit
446b3307f9
3 changed files with 3 additions and 3 deletions
|
@ -180,7 +180,7 @@ namespace
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
T operator()(T val)
|
T operator()(T val) const
|
||||||
{
|
{
|
||||||
return val <= m_limit ? m_ret : val;
|
return val <= m_limit ? m_ret : val;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ TrackerEntry &TrackerEntry::operator=(const TrackerEntry &other)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TrackerEntry::operator==(const TrackerEntry &other)
|
bool TrackerEntry::operator==(const TrackerEntry &other) const
|
||||||
{
|
{
|
||||||
return (QUrl(url()) == QUrl(other.url()));
|
return (QUrl(url()) == QUrl(other.url()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ namespace BitTorrent
|
||||||
|
|
||||||
void setTier(int value);
|
void setTier(int value);
|
||||||
TrackerEntry &operator=(const TrackerEntry &other);
|
TrackerEntry &operator=(const TrackerEntry &other);
|
||||||
bool operator==(const TrackerEntry &other);
|
bool operator==(const TrackerEntry &other) const;
|
||||||
|
|
||||||
libtorrent::announce_entry nativeEntry() const;
|
libtorrent::announce_entry nativeEntry() const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue