Commit 4784cfd3 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compiles with QT_NO_CAST_FROM_BYTEARRAY

parent cbdbfd60
......@@ -87,7 +87,6 @@ set_package_properties(Xsltproc PROPERTIES DESCRIPTION "XSLT processor from libx
########### Targets ###########
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
remove_definitions( -DQT_NO_CAST_FROM_BYTEARRAY )
########### CMake Config Files ###########
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5PimCommon")
......
......@@ -67,7 +67,7 @@ static QVariant::Type argumentType(const QMetaObject *mo, const QString &method)
return QVariant::Invalid;
}
return QVariant::nameToType(argTypes.first());
return QVariant::nameToType(argTypes.first().constData());
}
QString CreateResource::createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree)
......
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