mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use 'auto' to avoid duplicating the type name
This commit is contained in:
parent
947c7e1d64
commit
d8cbc9266a
25 changed files with 68 additions and 68 deletions
|
@ -74,7 +74,7 @@ Server::Server(IRequestHandler *requestHandler, QObject *parent)
|
|||
setProxy(QNetworkProxy::NoProxy);
|
||||
QSslSocket::setDefaultCiphers(safeCipherList());
|
||||
|
||||
QTimer *dropConnectionTimer = new QTimer(this);
|
||||
auto *dropConnectionTimer = new QTimer(this);
|
||||
connect(dropConnectionTimer, &QTimer::timeout, this, &Server::dropTimedOutConnection);
|
||||
dropConnectionTimer->start(CONNECTIONS_SCAN_INTERVAL * 1000);
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ void Server::incomingConnection(qintptr socketDescriptor)
|
|||
static_cast<QSslSocket *>(serverSocket)->startServerEncryption();
|
||||
}
|
||||
|
||||
Connection *c = new Connection(serverSocket, m_requestHandler, this);
|
||||
auto *c = new Connection(serverSocket, m_requestHandler, this);
|
||||
m_connections.append(c);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue