aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <[email protected]>2014-04-30 20:55:41 +0200
committerSimon Hausmann <[email protected]>2014-07-22 13:49:10 +0200
commitc9081fab7c63e50d2a3b7cfe3e78110a5922dc29 (patch)
tree81bdde5b1239a429a0633d5d7de20a9beb6286e3 /src/qml/jsruntime/qv4functionobject.cpp
parentd44cac4028df512b37b161e9f3fc9f7ba1c504bc (diff)
Rename Managed::managedData() to d() to be consistent
No need to differentiate in the name anymore, as the data structures all inherit from each other now. Change-Id: Ia41f50ce4e521f9626d874311ceb57e0e194888b Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index 36bc22b1e3..f6bd4d37c4 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -112,8 +112,8 @@ FunctionObject::FunctionObject(InternalClass *ic)
d()->scope = ic->engine->rootContext;
d()->function = 0;
- managedData()->needsActivation = false;
- managedData()->strictMode = false;
+ d()->needsActivation = false;
+ d()->strictMode = false;
memberData()[Index_Prototype] = Encode::undefined();
}
@@ -128,8 +128,8 @@ void FunctionObject::init(const StringRef n, bool createProto)
Scope s(internalClass()->engine);
ScopedValue protectThis(s, this);
- managedData()->needsActivation = true;
- managedData()->strictMode = false;
+ d()->needsActivation = true;
+ d()->strictMode = false;
if (createProto) {
Scoped<Object> proto(s, scope()->engine->newObject(scope()->engine->protoClass));
@@ -366,8 +366,8 @@ ScriptFunction::ScriptFunction(ExecutionContext *scope, Function *function)
Scope s(scope);
ScopedValue protectThis(s, this);
- managedData()->needsActivation = function->needsActivation();
- managedData()->strictMode = function->isStrict();
+ d()->needsActivation = function->needsActivation();
+ d()->strictMode = function->isStrict();
defineReadonlyProperty(scope->engine->id_length, Primitive::fromInt32(formalParameterCount()));
@@ -450,8 +450,8 @@ SimpleScriptFunction::SimpleScriptFunction(ExecutionContext *scope, Function *fu
ExecutionEngine *v4 = scope->engine;
- managedData()->needsActivation = function->needsActivation();
- managedData()->strictMode = function->isStrict();
+ d()->needsActivation = function->needsActivation();
+ d()->strictMode = function->isStrict();
defineReadonlyProperty(scope->engine->id_length, Primitive::fromInt32(formalParameterCount()));