[kwin] Use nullptr in GetAddrInfo::resolve
It was a FIXME C++11.
This commit is contained in:
parent
cdd9c5bcf5
commit
48f03a46a2
1 changed files with 2 additions and 4 deletions
|
@ -94,10 +94,8 @@ void GetAddrInfo::resolve()
|
|||
m_addressHints->ai_socktype = SOCK_STREAM;
|
||||
m_addressHints->ai_flags |= AI_CANONNAME;
|
||||
|
||||
// TODO: C++11 nullptr
|
||||
const char* nullPtr = NULL;
|
||||
m_watcher->setFuture(QtConcurrent::run(getaddrinfo, m_hostName.constData(), nullPtr, m_addressHints, &m_address));
|
||||
m_ownAddressWatcher->setFuture(QtConcurrent::run(getaddrinfo, getHostName().constData(), nullPtr, m_addressHints, &m_ownAddress));
|
||||
m_watcher->setFuture(QtConcurrent::run(getaddrinfo, m_hostName.constData(), nullptr, m_addressHints, &m_address));
|
||||
m_ownAddressWatcher->setFuture(QtConcurrent::run(getaddrinfo, getHostName().constData(), nullptr, m_addressHints, &m_ownAddress));
|
||||
}
|
||||
|
||||
void GetAddrInfo::slotResolved()
|
||||
|
|
Loading…
Reference in a new issue