summaryrefslogtreecommitdiff
path: root/src/manager-lib/nativeruntime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager-lib/nativeruntime.cpp')
-rw-r--r--src/manager-lib/nativeruntime.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/manager-lib/nativeruntime.cpp b/src/manager-lib/nativeruntime.cpp
index c7cbf71e..d583856a 100644
--- a/src/manager-lib/nativeruntime.cpp
+++ b/src/manager-lib/nativeruntime.cpp
@@ -3,6 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+#include <memory>
+
#include <QCoreApplication>
#include <QProcess>
#include <QDBusServer>
@@ -567,11 +569,11 @@ AbstractRuntime *NativeRuntimeManager::create(AbstractContainer *container, Appl
{
if (!container)
return nullptr;
- QScopedPointer<NativeRuntime> nrt(new NativeRuntime(container, app, this));
+ std::unique_ptr<NativeRuntime> nrt(new NativeRuntime(container, app, this));
if (!nrt || !nrt->initialize())
return nullptr;
- return nrt.take();
+ return nrt.release();
}
QT_END_NAMESPACE_AM