Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KLDAP
Commits
c39bde51
Commit
c39bde51
authored
Jan 02, 2017
by
Laurent Montel
😁
Browse files
Port to Q_NULLPTR
parent
5b4ea2af
Changes
2
Hide whitespace changes
Inline
Side-by-side
autotests/testkldap.cpp
View file @
c39bde51
...
@@ -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
);
...
...
kioslave/src/ldap/kio_ldap.cpp
View file @
c39bde51
...
@@ -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_
NULL
PTR
)
{
if
(
mProtocol
==
"ldaps"
)
{
if
(
mProtocol
==
"ldaps"
)
{
mServer
.
setPort
(
636
);
mServer
.
setPort
(
636
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment