zeroconf: fix wrong QMutexLocker usage

Replacing function declaration with local variable definition.

Change-Id: I8fd9be2bd83bab9a61c93361ce1da517315f0495
Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
Fawzi Mohamed
2011-11-08 17:54:57 +01:00
parent 1f9e7c04b4
commit 243a677110

View File

@@ -1419,7 +1419,7 @@ void MainConnection::createConnection()
} else {
QList<ServiceBrowserPrivate *> waitingBrowsers;
{
QMutexLocker(lock());
QMutexLocker l(lock());
waitingBrowsers = m_browsers;
increaseStatusTo(Running);
}