From c5d9e0b66e07a957d33539a045450a4634457c4a Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Wed, 10 Nov 2021 19:36:59 +0100 Subject: [PATCH] Port away from deprecated Corona::containmentForScreen overload By passing in empty strings the values are ignored. As the docs state, the methods can not use default arguments because of ambiguous function calls --- applets/kicker/plugin/containmentinterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applets/kicker/plugin/containmentinterface.cpp b/applets/kicker/plugin/containmentinterface.cpp index fa74b5366..bed61b670 100644 --- a/applets/kicker/plugin/containmentinterface.cpp +++ b/applets/kicker/plugin/containmentinterface.cpp @@ -50,7 +50,7 @@ bool ContainmentInterface::mayAddLauncher(QObject *appletInterface, ContainmentI switch (target) { case Desktop: { - containment = corona->containmentForScreen(containment->screen()); + containment = corona->containmentForScreen(containment->screen(), QString(), QString()); if (containment) { return (containment->immutability() == Plasma::Types::Mutable); @@ -122,7 +122,7 @@ void ContainmentInterface::addLauncher(QObject *appletInterface, ContainmentInte switch (target) { case Desktop: { - containment = corona->containmentForScreen(containment->screen()); + containment = corona->containmentForScreen(containment->screen(), QString(), QString()); if (!containment) { return; @@ -212,7 +212,7 @@ QObject *ContainmentInterface::screenContainment(QObject *appletInterface) return nullptr; } - return corona->containmentForScreen(containment->screen()); + return corona->containmentForScreen(containment->screen(), QString(), QString()); } bool ContainmentInterface::screenContainmentMutable(QObject *appletInterface)