diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-06-07 11:19:43 +0200 |
---|---|---|
committer | Holger Freyther <holger+qt@freyther.de> | 2015-06-08 07:15:03 +0000 |
commit | 73372182720fe0c0155045fb372ecd10c89c5731 (patch) | |
tree | 53a9d9dac056258efa7407346525750ec23668cd /src/qml/compiler | |
parent | 9f330241cbfc1c99b22cd0b625b6fe0dc8ef1b6c (diff) |
Remove more unused code from the QQmlEnginePrivate
overloadError has always been false and the if (overloadError)
was dead code. The code has been commented out for a long time
and I started to extend the #ifdef. The QQmlError is only used
inside the commented out code so I have removed the error param.
This is fixing Coverity CID 10612.
Change-Id: I48f36ede6ba615a34b15caefb0eea5d7e898f120
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r-- | src/qml/compiler/qqmltypecompiler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qml/compiler/qqmltypecompiler.cpp b/src/qml/compiler/qqmltypecompiler.cpp index 03e2aa295c..06154d75f0 100644 --- a/src/qml/compiler/qqmltypecompiler.cpp +++ b/src/qml/compiler/qqmltypecompiler.cpp @@ -104,11 +104,10 @@ bool QQmlTypeCompiler::compile() } if (ref->type->containsRevisionedAttributes()) { - QQmlError cacheError; ref->typePropertyCache = engine->cache(ref->type, - resolvedType->minorVersion, - cacheError); + resolvedType->minorVersion); if (!ref->typePropertyCache) { + QQmlError cacheError; cacheError.setColumn(resolvedType->location.column); cacheError.setLine(resolvedType->location.line); recordError(cacheError); |