fix: build faild

dumpDBusObject
This commit is contained in:
ck 2024-06-05 17:45:36 +08:00 committed by Comix
parent 60414b5271
commit e827f404ac
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ QString MimeManager1Service::queryDefaultApplication(const QString &content, QDB
qWarning() << "default application has been found:" << defaultAppId qWarning() << "default application has been found:" << defaultAppId
<< " but we can't find corresponding application in ApplicationManagerService."; << " but we can't find corresponding application in ApplicationManagerService.";
} else { } else {
application = apps.firstKey(); application = apps.keys().first();
} }
return type; return type;

View File

@ -540,8 +540,8 @@ inline unitInfo processUnitName(const QString &unitName)
return {unescapeApplicationId(applicationId), std::move(launcher), std::move(instanceId)}; return {unescapeApplicationId(applicationId), std::move(launcher), std::move(instanceId)};
} }
template <typename T> template <template<typename, typename> class Container, typename QDBusObjectPath, typename T>
ObjectMap dumpDBusObject(const QMap<QDBusObjectPath, QSharedPointer<T>> &map) ObjectMap dumpDBusObject(const Container<QDBusObjectPath, QSharedPointer<T>> &map)
{ {
ObjectMap objs; ObjectMap objs;