aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcomponent.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-06-07 11:44:58 +0200
committerHolger Freyther <holger+qt@freyther.de>2015-06-08 07:14:45 +0000
commit9f330241cbfc1c99b22cd0b625b6fe0dc8ef1b6c (patch)
treea5ac8503277ee27fc5d1d83a54d62c526d87dc3f /src/qml/qml/qqmlcomponent.cpp
parent5b7f20376527812a814b422d8409842cf0704883 (diff)
Remove dead code QQmlComponent::createObject
There is an early check for rv and it is not being re-assigned during the execution. Fixes Coverity CID 10613. Change-Id: I725404c1178dcf72c4444636ead5b0ec7109b2ad Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlcomponent.cpp')
-rw-r--r--src/qml/qml/qqmlcomponent.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp
index 63cc9d617d..425c5e507c 100644
--- a/src/qml/qml/qqmlcomponent.cpp
+++ b/src/qml/qml/qqmlcomponent.cpp
@@ -1255,10 +1255,7 @@ void QQmlComponent::createObject(QQmlV4Function *args)
QQmlData::get(rv)->explicitIndestructibleSet = false;
QQmlData::get(rv)->indestructible = false;
- if (!rv)
- args->setReturnValue(QV4::Encode::null());
- else
- args->setReturnValue(object->asReturnedValue());
+ args->setReturnValue(object->asReturnedValue());
}
/*!