aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmllistmodelworkeragent_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/types/qqmllistmodelworkeragent_p.h')
-rw-r--r--src/qml/types/qqmllistmodelworkeragent_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/types/qqmllistmodelworkeragent_p.h b/src/qml/types/qqmllistmodelworkeragent_p.h
index 0c639b140d..f9872a6ad4 100644
--- a/src/qml/types/qqmllistmodelworkeragent_p.h
+++ b/src/qml/types/qqmllistmodelworkeragent_p.h
@@ -97,7 +97,8 @@ public:
VariantRef &operator=(const VariantRef &o) {
if (o.a) o.a->addref();
- if (a) a->release(); a = o.a;
+ if (a) a->release();
+ a = o.a;
return *this;
}