diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-01-10 17:10:42 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-01-11 13:05:22 +0000 |
commit | b63ed5750a1c904847ac89927974844e3f49554c (patch) | |
tree | d64c61ec2a88b58d80957a3af608e381b3beeaf0 /src/lib/corelib/language/evaluatorscriptclass.cpp | |
parent | 7dfcd6fdbc4ee012138db0b7552cd36ba7fe0033 (diff) |
Remove superfluous QScriptClass::engine calls
We have the engine member for that.
Change-Id: I59cec08bbd2cb4bbab119b307490f599634b7d5b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/language/evaluatorscriptclass.cpp')
-rw-r--r-- | src/lib/corelib/language/evaluatorscriptclass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/language/evaluatorscriptclass.cpp b/src/lib/corelib/language/evaluatorscriptclass.cpp index ba08c2074..c28404bd3 100644 --- a/src/lib/corelib/language/evaluatorscriptclass.cpp +++ b/src/lib/corelib/language/evaluatorscriptclass.cpp @@ -114,7 +114,7 @@ private: const QScriptValue &scriptValue) { if (!extraScope->isObject()) - *extraScope = scriptClass->engine()->newObject(); + *extraScope = engine->newObject(); const PropertyDeclaration::Type type = itemOfProperty->propertyDeclaration(propertyName->toString()).type(); const bool isArray = type == PropertyDeclaration::StringList @@ -304,7 +304,7 @@ private: void handle(VariantValue *variantValue) { - *result = scriptClass->engine()->toScriptValue(variantValue->value()); + *result = engine->toScriptValue(variantValue->value()); } }; |