Use auto to avoid duplicating the type name

This commit is contained in:
Luis Ángel San Martín
2019-05-31 20:58:06 +02:00
parent 923ad40057
commit bb334cfd50
55 changed files with 286 additions and 286 deletions

View File

@ -44,7 +44,7 @@ void YACReaderLocalServer::sendResponse()
//connect(clientConnection, SIGNAL(disconnected()),clientConnection, SLOT(deleteLater()));
clientConnection->setParent(0);
YACReaderClientConnectionWorker *worker = new YACReaderClientConnectionWorker(clientConnection);
auto worker = new YACReaderClientConnectionWorker(clientConnection);
if (worker != 0) {
clientConnection->moveToThread(worker);
connect(worker, SIGNAL(comicUpdated(quint64, ComicDB)), this, SIGNAL(comicUpdated(quint64, ComicDB)));