Commit e99778b9 authored by Andreas Hartmetz's avatar Andreas Hartmetz

Revert last commit in two cases - don't compare two char pointers

Compare the string contents instead. The new old way might not be
optimal, but this works for now.
parent a0b1312d
......@@ -24,7 +24,7 @@
void DesktopPlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == "org.kde.private.desktopcontainment.desktop");
Q_ASSERT(uri == QLatin1String("org.kde.private.desktopcontainment.desktop"));
qmlRegisterType<InfoNotification>(uri, 0, 1, "InfoNotification");
}
......@@ -45,7 +45,7 @@ static QObject *menuHelperSingletonProvider(QQmlEngine *engine, QJSEngine *jsEng
void FolderPlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == "org.kde.private.desktopcontainment.folder");
Q_ASSERT(uri == QLatin1String("org.kde.private.desktopcontainment.folder"));
qmlRegisterType<DirectoryPicker>(uri, 0, 1, "DirectoryPicker");
qmlRegisterType<FolderModel>(uri, 0, 1, "FolderModel");
qmlRegisterType<ItemViewAdapter>(uri, 0, 1, "ItemViewAdapter");
......
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