summaryrefslogtreecommitdiff
path: root/src/tools/packager/packager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/packager/packager.cpp')
-rw-r--r--src/tools/packager/packager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/packager/packager.cpp b/src/tools/packager/packager.cpp
index 3cbc0d0e..fd0bfffc 100644
--- a/src/tools/packager/packager.cpp
+++ b/src/tools/packager/packager.cpp
@@ -3,6 +3,9 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+#include <memory>
+#include <stdio.h>
+
#include <QCoreApplication>
#include <QCommandLineParser>
#include <QStringList>
@@ -11,8 +14,6 @@
#include <QJsonDocument>
#include <QDebug>
-#include <stdio.h>
-
#include <QtAppManCommon/exception.h>
#include <QtAppManCommon/qtyaml.h>
#include <QtAppManCommon/utilities.h>
@@ -111,7 +112,7 @@ int main(int argc, char *argv[])
clp.setOptionsAfterPositionalArgumentsMode(QCommandLineParser::ParseAsOptions);
try {
- QScopedPointer<PackagingJob> p;
+ std::unique_ptr<PackagingJob> p;
// REMEMBER to update the completion file util/bash/appman-prompt, if you apply changes below!
switch (command(clp)) {