Remove const in declarations' arguments that are passed by value

This commit is contained in:
thalieht 2019-02-22 01:03:22 +02:00
parent 70f1537d9f
commit 8a19a0d4a0
11 changed files with 22 additions and 22 deletions

View file

@ -1186,7 +1186,7 @@ int Preferences::getPropCurTab() const
return value("TorrentProperties/CurrentTab", -1).toInt();
}
void Preferences::setPropCurTab(const int &tab)
void Preferences::setPropCurTab(const int tab)
{
setValue("TorrentProperties/CurrentTab", tab);
}
@ -1356,7 +1356,7 @@ int Preferences::getTransSelFilter() const
return value("TransferListFilters/selectedFilterIndex", 0).toInt();
}
void Preferences::setTransSelFilter(const int &index)
void Preferences::setTransSelFilter(const int index)
{
setValue("TransferListFilters/selectedFilterIndex", index);
}