mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Merge pull request #10220 from thalieht/const
Add const to many vars and arguments
This commit is contained in:
commit
78ab0e4ba9
34 changed files with 299 additions and 301 deletions
|
@ -850,7 +850,7 @@ void MainWindow::finishedTorrent(BitTorrent::TorrentHandle *const torrent) const
|
|||
}
|
||||
|
||||
// Notification when disk is full
|
||||
void MainWindow::fullDiskError(BitTorrent::TorrentHandle *const torrent, QString msg) const
|
||||
void MainWindow::fullDiskError(BitTorrent::TorrentHandle *const torrent, const QString &msg) const
|
||||
{
|
||||
showNotificationBaloon(tr("I/O Error", "i.e: Input/Output Error")
|
||||
, tr("An I/O error occurred for torrent '%1'.\n Reason: %2"
|
||||
|
@ -964,7 +964,7 @@ void MainWindow::askRecursiveTorrentDownloadConfirmation(BitTorrent::TorrentHand
|
|||
confirmBox->show();
|
||||
}
|
||||
|
||||
void MainWindow::handleDownloadFromUrlFailure(QString url, QString reason) const
|
||||
void MainWindow::handleDownloadFromUrlFailure(const QString &url, const QString &reason) const
|
||||
{
|
||||
// Display a message box
|
||||
showNotificationBaloon(tr("URL download error")
|
||||
|
@ -1062,7 +1062,7 @@ bool MainWindow::unlockUI()
|
|||
return true;
|
||||
}
|
||||
|
||||
void MainWindow::notifyOfUpdate(QString)
|
||||
void MainWindow::notifyOfUpdate(const QString &)
|
||||
{
|
||||
// Show restart message
|
||||
m_statusBar->showRestartRequired();
|
||||
|
@ -1569,7 +1569,7 @@ void MainWindow::updateGUI()
|
|||
}
|
||||
}
|
||||
|
||||
void MainWindow::showNotificationBaloon(QString title, QString msg) const
|
||||
void MainWindow::showNotificationBaloon(const QString &title, const QString &msg) const
|
||||
{
|
||||
if (!isNotificationsEnabled()) return;
|
||||
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MAC)) && defined(QT_DBUS_LIB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue