Commit 67f37dc0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make compile with QT_NO_CAST_FROM_BYTEARRAY

parent 7b3dc053
remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
add_subdirectory(ldap)
......@@ -189,7 +189,7 @@ void LDAPProtocol::controlsFromMetaData(LdapControls &serverctrls,
Ldif::splitControl(val, oid, critical, value);
qCDebug(KLDAP_LOG) << "server ctrl #" << i << " value: " << val <<
" oid: " << oid << " critical: " << critical << " value: " <<
QString::fromUtf8(value, value.size()) << endl;
QString::fromUtf8(value.constData(), value.size()) << endl;
LdapControl ctrl(oid, val, critical);
serverctrls.append(ctrl);
i++;
......@@ -200,7 +200,7 @@ void LDAPProtocol::controlsFromMetaData(LdapControls &serverctrls,
Ldif::splitControl(val, oid, critical, value);
qCDebug(KLDAP_LOG) << "client ctrl #" << i << " value: " << val <<
" oid: " << oid << " critical: " << critical << " value: " <<
QString::fromUtf8(value, value.size()) << endl;
QString::fromUtf8(value.constData(), value.size()) << endl;
LdapControl ctrl(oid, val, critical);
clientctrls.append(ctrl);
i++;
......@@ -288,7 +288,7 @@ void LDAPProtocol::setHost(const QString &host, quint16 port,
mServer.setPort(port);
} else {
struct servent *pse;
if ((pse = getservbyname(mProtocol, "tcp")) == nullptr) {
if ((pse = getservbyname(mProtocol.constData(), "tcp")) == 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