aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-06-02 14:11:18 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-06-02 18:31:46 +0000
commitd6aa03cf074f1db6d4ccd430aae1cf8d86c93d27 (patch)
treec19a1f585e1d1caf7e60fa01db1f6d048334698a /src/lib/corelib
parent8f525a7c5ecc185eff69cc739f78b419c0cb2d3a (diff)
Remove superfluous nullptr check in SVConverter
We do not need to check itemOfProperty for nullptr, because it is always provided. Other code paths already use this variable unconditionally. Change-Id: Ibf4cd79aa0579361300cd6b6734b15c49bd1e6ec Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib')
-rw-r--r--src/lib/corelib/language/evaluatorscriptclass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/language/evaluatorscriptclass.cpp b/src/lib/corelib/language/evaluatorscriptclass.cpp
index e42345094..1054c61a9 100644
--- a/src/lib/corelib/language/evaluatorscriptclass.cpp
+++ b/src/lib/corelib/language/evaluatorscriptclass.cpp
@@ -277,7 +277,7 @@ private:
pushScope(data->evaluator->fileScope(value->file()));
pushItemScopes(data->item);
- if (itemOfProperty && itemOfProperty->type() != ItemType::ModuleInstance) {
+ if (itemOfProperty->type() != ItemType::ModuleInstance) {
// Own properties of module instances must not have the instance itself in the scope.
pushScope(*object);
}