OSDN Git Service

remove incorrect namespace prefix from getHostByNameMutex() reference in QHostInfoAge...
authorIvailo Monev <xakepa10@laimg.moc>
Mon, 29 Jul 2019 10:40:28 +0000 (10:40 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Mon, 29 Jul 2019 10:40:28 +0000 (10:40 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/network/kernel/qhostinfo_unix.cpp

index f2ac48d..1601091 100644 (file)
@@ -215,7 +215,7 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName)
     // reentrant on all platforms. For now this is okay since we only
     // use one QHostInfoAgent, but if more agents are introduced, locking
     // must be provided.
-    QMutexLocker locker(::getHostByNameMutex());
+    QMutexLocker locker(getHostByNameMutex());
     hostent *result = gethostbyname(aceHostname.constData());
     if (result) {
         if (result->h_addrtype == AF_INET) {
@@ -291,7 +291,7 @@ QString QHostInfo::localDomainName()
 #if defined(QT_NO_GETADDRINFO)
     // We have to call res_init to be sure that _res was initialized
     // So, for systems without getaddrinfo (which is thread-safe), we lock the mutex too
-    QMutexLocker locker(::getHostByNameMutex());
+    QMutexLocker locker(getHostByNameMutex());
 #endif
     res_init();
     QString domainName = QUrl::fromAce(_res.defdname);