aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlloggingcategory_p.h
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2022-03-08 17:03:47 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2022-03-10 21:02:58 +0000
commitaf7d0957e4ec765764f893afbde386c67d8ec7e9 (patch)
treeef4839579754c00865b9aef4b5e42ab5ce496f2b /src/qml/qml/qqmlloggingcategory_p.h
parent81bbd0b45aeb1eb98efd9153c79ebf4f0e4be839 (diff)
Fix deprecated uses of QScopedPointer
Which is uses of take() and swap(). And replace it with std::unique_ptr. Change-Id: I2580383c1d2af0ba6103a66f034235905e0988ac Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlloggingcategory_p.h')
-rw-r--r--src/qml/qml/qqmlloggingcategory_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlloggingcategory_p.h b/src/qml/qml/qqmlloggingcategory_p.h
index 9cee029a9b..0a445b5b34 100644
--- a/src/qml/qml/qqmlloggingcategory_p.h
+++ b/src/qml/qml/qqmlloggingcategory_p.h
@@ -58,6 +58,8 @@
#include <QtQml/qqmlparserstatus.h>
#include <QtQml/qqml.h>
+#include <memory>
+
QT_BEGIN_NAMESPACE
class QQmlLoggingCategory : public QObject, public QQmlParserStatus
@@ -95,7 +97,7 @@ public:
private:
QByteArray m_name;
- QScopedPointer<QLoggingCategory> m_category;
+ std::unique_ptr<QLoggingCategory> m_category;
DefaultLogLevel m_defaultLogLevel = Debug;
bool m_initialized;
};