diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-06-07 11:44:58 +0200 |
---|---|---|
committer | Holger Freyther <holger+qt@freyther.de> | 2015-06-08 07:14:45 +0000 |
commit | 9f330241cbfc1c99b22cd0b625b6fe0dc8ef1b6c (patch) | |
tree | a5ac8503277ee27fc5d1d83a54d62c526d87dc3f /src | |
parent | 5b7f20376527812a814b422d8409842cf0704883 (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')
-rw-r--r-- | src/qml/qml/qqmlcomponent.cpp | 5 |
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()); } /*! |