summaryrefslogtreecommitdiff
path: root/src/client/shellintegration/qwaylandshellintegrationfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/shellintegration/qwaylandshellintegrationfactory.cpp')
-rw-r--r--src/client/shellintegration/qwaylandshellintegrationfactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/shellintegration/qwaylandshellintegrationfactory.cpp b/src/client/shellintegration/qwaylandshellintegrationfactory.cpp
index e3a9aeb3..ade2b4e3 100644
--- a/src/client/shellintegration/qwaylandshellintegrationfactory.cpp
+++ b/src/client/shellintegration/qwaylandshellintegrationfactory.cpp
@@ -58,13 +58,13 @@ QStringList QWaylandShellIntegrationFactory::keys()
QWaylandShellIntegration *QWaylandShellIntegrationFactory::create(const QString &name, QWaylandDisplay *display, const QStringList &args)
{
- QScopedPointer<QWaylandShellIntegration> integration;
+ std::unique_ptr<QWaylandShellIntegration> integration;
integration.reset(qLoadPlugin<QWaylandShellIntegration, QWaylandShellIntegrationPlugin>(loader(), name, args));
if (integration && !integration->initialize(display))
return nullptr;
- return integration.take();
+ return integration.release();
}
}