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