Commit f48b3fed authored by Laurent Montel's avatar Laurent Montel 😁

Use QOverload

parent 946f90e9
......@@ -119,15 +119,13 @@ bool AkonadiServer::init()
QSettings connectionSettings(connectionSettingsFile, QSettings::IniFormat);
mCmdServer = new AkLocalServer(this);
connect(mCmdServer, static_cast<void(AkLocalServer::*)(quintptr)>(&AkLocalServer::newConnection),
this, &AkonadiServer::newCmdConnection);
connect(mCmdServer, QOverload<quintptr>::of(&AkLocalServer::newConnection), this, &AkonadiServer::newCmdConnection);
mNotificationManager = new NotificationManager();
mNtfServer = new AkLocalServer(this);
// Note: this is a queued connection, as NotificationManager lives in its
// own thread
connect(mNtfServer, static_cast<void(AkLocalServer::*)(quintptr)>(&AkLocalServer::newConnection),
mNotificationManager, &NotificationManager::registerConnection);
connect(mNtfServer, QOverload<quintptr>::of(&AkLocalServer::newConnection), mNotificationManager, &NotificationManager::registerConnection);
#ifdef Q_OS_WIN
HANDLE hToken = NULL;
......
......@@ -385,8 +385,7 @@ bool DbConfigMysql::startInternalServer()
return false;
}
connect(mDatabaseProcess, static_cast<void(QProcess::*)(int,QProcess::ExitStatus)>(&QProcess::finished),
this, &DbConfigMysql::processFinished);
connect(mDatabaseProcess, QOverload<int,QProcess::ExitStatus>::of(&QProcess::finished), this, &DbConfigMysql::processFinished);
// wait until mysqld has created the socket file (workaround for QTBUG-47475 in Qt5.5.0)
int counter = 50; // avoid an endless loop in case mysqld terminated
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment