diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2022-03-08 17:03:47 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2022-03-10 21:02:58 +0000 |
commit | af7d0957e4ec765764f893afbde386c67d8ec7e9 (patch) | |
tree | ef4839579754c00865b9aef4b5e42ab5ce496f2b /src/qml/jsruntime/qv4executablecompilationunit_p.h | |
parent | 81bbd0b45aeb1eb98efd9153c79ebf4f0e4be839 (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/jsruntime/qv4executablecompilationunit_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4executablecompilationunit_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit_p.h b/src/qml/jsruntime/qv4executablecompilationunit_p.h index c093033aab..5c73b40121 100644 --- a/src/qml/jsruntime/qv4executablecompilationunit_p.h +++ b/src/qml/jsruntime/qv4executablecompilationunit_p.h @@ -60,6 +60,8 @@ #include <private/qqmlnullablevalue_p.h> #include <private/qqmlmetatype_p.h> +#include <memory> + QT_BEGIN_NAMESPACE class QQmlScriptData; @@ -185,7 +187,7 @@ public: QHash<int, InlineComponentData> inlineComponentData; - QScopedPointer<CompilationUnitMapper> backingFile; + std::unique_ptr<CompilationUnitMapper> backingFile; // --- interface for QQmlPropertyCacheCreator using CompiledObject = CompiledData::Object; |