aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlobjectcreator.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-11-25 10:27:02 +0100
committerLars Knoll <lars.knoll@qt.io>2016-11-29 20:00:29 +0000
commit46941afcc10209905a92e6bb8b3eba7c08bf6750 (patch)
tree85f11182e9656668aaeda6e5adcce6b1418fb672 /src/qml/qml/qqmlobjectcreator.cpp
parent5d35573a62686aa3b0c45fc032b79670d88ebba9 (diff)
Cleanup Value::isObject/objectValue usages
Try to avoid calling both as objectValue() already checks isObject(). Change-Id: I1d770d4d9dabed4ea4cc3e322b8fdc5a64f5bd2b Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
-rw-r--r--src/qml/qml/qqmlobjectcreator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlobjectcreator.cpp b/src/qml/qml/qqmlobjectcreator.cpp
index 115925e34a..d07be77697 100644
--- a/src/qml/qml/qqmlobjectcreator.cpp
+++ b/src/qml/qml/qqmlobjectcreator.cpp
@@ -1016,7 +1016,7 @@ void QQmlObjectCreator::registerObjectWithContextById(const QV4::CompiledData::O
QV4::Heap::QmlContext *QQmlObjectCreator::currentQmlContext()
{
- if (!_qmlContext->objectValue())
+ if (!_qmlContext->isObject())
_qmlContext->setM(v4->rootContext()->newQmlContext(context, _scopeObject));
return _qmlContext->d();