aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-03-28 21:53:46 +0100
committerJari-Pekka Nurmi <jpnurmi@theqtcompany.com>2015-03-28 22:54:50 +0200
commit3762fa3f0cfe1a1d24b080327cf232534f98f491 (patch)
tree6feb680fa53c78d64a63f86e553dd8d6a5fc1a38
parent74d43b9c9982474dca9f14ac3cab8377bfcf9b7f (diff)
QQuickAbstractStackView: fix build
error: invalid conversion from 'const QV4::QObjectWrapper*' to 'QV4::QObjectWrapper*' Change-Id: I31561ae56faa190ec545c5d400cc807c0862b88e Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r--src/controls/qquickabstractstackview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/qquickabstractstackview.cpp b/src/controls/qquickabstractstackview.cpp
index 3775e180..a849bd94 100644
--- a/src/controls/qquickabstractstackview.cpp
+++ b/src/controls/qquickabstractstackview.cpp
@@ -141,7 +141,7 @@ QList<QQuickStackElement *> QQuickAbstractStackViewPrivate::createElements(const
QV4::ScopedValue v(scope, a->getIndexed(i));
elements += createElements(v);
}
- } else if (QV4::QObjectWrapper *o =value->as<QV4::QObjectWrapper>()) {
+ } else if (const QV4::QObjectWrapper *o =value->as<QV4::QObjectWrapper>()) {
qDebug() << "### QOBJECT:" << o->object();
elements += QQuickStackElement::fromObject(o->object());
} else {