summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIikka Eklund <iikka.eklund@theqtcompany.com>2016-01-21 10:00:28 +0200
committerIikka Eklund <iikka.eklund@theqtcompany.com>2016-01-21 09:12:18 +0000
commiteed2611fc9978bb5dfae61c800d295257008953b (patch)
tree6573893024c4dbd0d4f7b97efd961ec04f5f92d1 /src
parent2af57eb8c8351e09f3224128b3593aa160c6c424 (diff)
Compilation fix for QV4 usage
asObject() is deprecated so use as<QV4::Object>() instead. Change-Id: Ib0ea08a69e1c806a6c76d10a92c0280cb0bed153 Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com> Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/libs/installer/component.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp
index 07f526a21..75e7ee626 100644
--- a/src/libs/installer/component.cpp
+++ b/src/libs/installer/component.cpp
@@ -1021,9 +1021,9 @@ inline bool convert(QQmlV4Function *func, QStringList *toArgs)
*toArgs << val->toQString();
for (int i = 1; i < func->length(); i++) {
val = (*func)[i];
- if (val->isObject() && val->asObject()->isArrayObject()) {
+ if (val->isObject() && val->as<QV4::Object>()->isArrayObject()) {
QV4::ScopedValue valtmp(scope);
- QV4::Object *array = val->asObject();
+ QV4::Object *array = val->as<QV4::Object>();
uint length = array->getLength();
for (uint ii = 0; ii < length; ++ii) {
valtmp = array->getIndexed(ii);