Commit 1e06f4db authored by Laurent Montel's avatar Laurent Montel 😁

It compiles fine with QT_NO_CAST_FROM_BYTEARRA

parent 86ee43bd
......@@ -64,7 +64,6 @@ if (Qt5Designer_FOUND)
find_package(KF5DesignerPlugin ${KF5_VERSION} CONFIG REQUIRED)
endif()
add_definitions( -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT )
remove_definitions( -DQT_NO_CAST_FROM_BYTEARRAY )
#add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
########### CMake Config Files ###########
......
......@@ -332,7 +332,7 @@ void LdapClientSearch::Private::makeSearchData(QStringList &ret, LdapResult::Lis
if (len > 0 && '\0' == val[len - 1]) {
--len;
}
const QString tmp = QString::fromUtf8(val, len);
const QString tmp = QString::fromUtf8(val.constData(), len);
//qCDebug(LDAPCLIENT_LOG) <<" key: \"" << it2.key() <<"\" value: \"" << tmp <<"\"";
if (it2.key() == QLatin1String("cn")) {
name = tmp;
......
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