Add const to a few pointer arguments

This commit is contained in:
thalieht
2019-02-22 04:24:22 +02:00
parent ce437817de
commit 77aea3c59e
10 changed files with 12 additions and 12 deletions

View File

@@ -118,7 +118,7 @@ PiecesBar::PiecesBar(QWidget *parent)
setMouseTracking(true);
}
void PiecesBar::setTorrent(BitTorrent::TorrentHandle *torrent)
void PiecesBar::setTorrent(const BitTorrent::TorrentHandle *torrent)
{
m_torrent = torrent;
if (!m_torrent)

View File

@@ -50,7 +50,7 @@ class PiecesBar : public QWidget
public:
explicit PiecesBar(QWidget *parent = nullptr);
void setTorrent(BitTorrent::TorrentHandle *torrent);
void setTorrent(const BitTorrent::TorrentHandle *torrent);
void setColors(const QColor &background, const QColor &border, const QColor &complete);
virtual void clear();