aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4scopedvalue_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4scopedvalue_p.h')
-rw-r--r--src/qml/jsruntime/qv4scopedvalue_p.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h
index 12a6381e6f..beb8315225 100644
--- a/src/qml/jsruntime/qv4scopedvalue_p.h
+++ b/src/qml/jsruntime/qv4scopedvalue_p.h
@@ -172,6 +172,9 @@ private:
struct ScopedValue
{
+ ScopedValue(const ScopedValue &) = default;
+ ScopedValue(ScopedValue &&) = default;
+
ScopedValue(const Scope &scope)
{
ptr = scope.alloc<Scope::Uninitialized>();
@@ -381,11 +384,6 @@ struct Scoped
return *this;
}
- Scoped<T> &operator=(const Scoped<T> &other) {
- *ptr = *other.ptr;
- return *this;
- }
-
Scoped<T> &operator=(T *t) {
setPointer(t);
return *this;