remove incorrect namespace prefix from getHostByNameMutex() reference in QHostInfoAgent::fromName()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-07-29 10:40:28 +00:00
parent 0b58781669
commit b4cfda240a

View 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);