diff options
author | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2015-08-25 09:08:58 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2015-08-25 15:02:57 +0000 |
commit | 89c3c79c257fe53122cce1c739453bc45b5926b8 (patch) | |
tree | 20c403255b6f1c929c91548be295f67b5cc32ac2 | |
parent | de1ecd10ab7af694f8a3e427c6be83738879d11e (diff) | |
download | qtdeclarative-89c3c79c257fe53122cce1c739453bc45b5926b8.tar.gz qtdeclarative-89c3c79c257fe53122cce1c739453bc45b5926b8.tar.bz2 qtdeclarative-89c3c79c257fe53122cce1c739453bc45b5926b8.zip |
Fix warning in tst_qquickdesignersupport.cpp
Taking the address of a temporary is not allowed.
It is against the standard to pass a non-const reference
to a temporary object.
Change-Id: Ib333fa9a366725b8f0491a4216597fa5baeef7ff
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
-rw-r--r-- | tests/auto/quick/qquickdesignersupport/tst_qquickdesignersupport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickdesignersupport/tst_qquickdesignersupport.cpp b/tests/auto/quick/qquickdesignersupport/tst_qquickdesignersupport.cpp index 49535783c..1104ce1d9 100644 --- a/tests/auto/quick/qquickdesignersupport/tst_qquickdesignersupport.cpp +++ b/tests/auto/quick/qquickdesignersupport/tst_qquickdesignersupport.cpp @@ -394,7 +394,8 @@ void tst_qquickdesignersupport::statesPropertyChanges() //Create new PropertyChanges QQuickPropertyChanges *newPropertyChange = new QQuickPropertyChanges(); newPropertyChange->setParent(state01); - QQuickStatePrivate::operations_append(&state01->changes(), newPropertyChange); + QQmlListProperty<QQuickStateOperation> changes = state01->changes(); + QQuickStatePrivate::operations_append(&changes, newPropertyChange); newPropertyChange->setObject(rootItem); |