Commit c39bde51 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to Q_NULLPTR

parent 5b4ea2af
...@@ -44,8 +44,8 @@ void KLdapTest::initTestCase() ...@@ -44,8 +44,8 @@ void KLdapTest::initTestCase()
The specified server should not be a production server in case we break anything here. The specified server should not be a production server in case we break anything here.
You have been warned! You have been warned!
*/ */
m_search = 0; m_search = Q_NULLPTR;
m_model = 0; m_model = Q_NULLPTR;
QString filename(QStringLiteral("testurl.txt")); QString filename(QStringLiteral("testurl.txt"));
QFile file(filename); QFile file(filename);
......
...@@ -288,7 +288,7 @@ void LDAPProtocol::setHost(const QString &host, quint16 port, ...@@ -288,7 +288,7 @@ void LDAPProtocol::setHost(const QString &host, quint16 port,
mServer.setPort(port); mServer.setPort(port);
} else { } else {
struct servent *pse; struct servent *pse;
if ((pse = getservbyname(mProtocol, "tcp")) == NULL) { if ((pse = getservbyname(mProtocol, "tcp")) == Q_NULLPTR) {
if (mProtocol == "ldaps") { if (mProtocol == "ldaps") {
mServer.setPort(636); mServer.setPort(636);
} else { } else {
......
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