Browse Source

Make method const

adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
446b3307f9
  1. 2
      src/base/bittorrent/session.cpp
  2. 2
      src/base/bittorrent/trackerentry.cpp
  3. 2
      src/base/bittorrent/trackerentry.h

2
src/base/bittorrent/session.cpp

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

2
src/base/bittorrent/trackerentry.cpp

@ -84,7 +84,7 @@ TrackerEntry &TrackerEntry::operator=(const TrackerEntry &other) @@ -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()));
}

2
src/base/bittorrent/trackerentry.h

@ -60,7 +60,7 @@ namespace BitTorrent @@ -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;

Loading…
Cancel
Save