From 04cb7ba53ebf8959cb783f62f343795ca4baa69c Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 1 Aug 2014 11:36:43 +0200 Subject: [PATCH] Fix build in Qt 5.4 See https://git.reviewboard.kde.org/r/119242/ --- containmentactions/applauncher/launch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containmentactions/applauncher/launch.cpp b/containmentactions/applauncher/launch.cpp index 945acac0e..d4790ef6c 100644 --- a/containmentactions/applauncher/launch.cpp +++ b/containmentactions/applauncher/launch.cpp @@ -54,7 +54,7 @@ void AppLauncher::makeMenu(QMenu *menu, const KServiceGroup::Ptr group) { foreach (KSycocaEntry::Ptr p, group->entries(true, false, true)) { if (p->isType(KST_KService)) { - const KService::Ptr service = p; + const KService::Ptr service(static_cast(p.data())); QAction *action = new QAction(QIcon::fromTheme(service->icon()), service->genericName().isEmpty() ? service->name() : service->genericName(), this); connect(action, &QAction::triggered, [action](){ KService::Ptr service = KService::serviceByStorageId(action->data().toString()); @@ -67,7 +67,7 @@ void AppLauncher::makeMenu(QMenu *menu, const KServiceGroup::Ptr group) m_actions << action; } } else if (p->isType(KST_KServiceGroup)) { - const KServiceGroup::Ptr service = p; + const KServiceGroup::Ptr service(static_cast(p.data())); if (service->childCount() == 0) { continue; }