mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add const to almost all remaining vars and arguments that qualify
This commit is contained in:
parent
bb041c0eca
commit
70f1537d9f
35 changed files with 261 additions and 261 deletions
|
@ -89,7 +89,7 @@ void AppController::shutdownAction()
|
|||
void AppController::preferencesAction()
|
||||
{
|
||||
const Preferences *const pref = Preferences::instance();
|
||||
auto session = BitTorrent::Session::instance();
|
||||
const auto *session = BitTorrent::Session::instance();
|
||||
QVariantMap data;
|
||||
|
||||
// Downloads
|
||||
|
@ -144,7 +144,7 @@ void AppController::preferencesAction()
|
|||
data["max_uploads_per_torrent"] = session->maxUploadsPerTorrent();
|
||||
|
||||
// Proxy Server
|
||||
auto proxyManager = Net::ProxyConfigurationManager::instance();
|
||||
const auto *proxyManager = Net::ProxyConfigurationManager::instance();
|
||||
Net::ProxyConfiguration proxyConf = proxyManager->proxyConfiguration();
|
||||
data["proxy_type"] = static_cast<int>(proxyConf.type);
|
||||
data["proxy_ip"] = proxyConf.ip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue