diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-08-24 16:24:34 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-15 07:37:28 +0000 |
commit | f3efdebc34d37137f256995984d2050375be25de (patch) | |
tree | 848751457be6d48de132b50f66030f5773f7a716 /src | |
parent | 830376c9621dc8ada8e63b8b15f9abf856facfef (diff) |
Fix typo
Change-Id: I9bfc96096ec5e2c8bd4d3c5bad13fc78ae657962
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/jsruntime/qv4engine.cpp | 4 | ||||
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp index 4254626d63..59962da1c3 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp @@ -509,10 +509,10 @@ void ExecutionEngine::initRootContext() r->d()->callData->argc = 0; r->d()->callData->thisObject = globalObject; r->d()->callData->args[0] = Encode::undefined(); - jsObjects[RootContect] = r; + jsObjects[RootContext] = r; jsObjects[IntegerNull] = Encode((int)0); - currentContext = static_cast<ExecutionContext *>(jsObjects + RootContect); + currentContext = static_cast<ExecutionContext *>(jsObjects + RootContext); current = currentContext->d(); } diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index eba60bf215..ce3b235a91 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -127,7 +127,7 @@ public: QV8Engine *v8Engine; enum JSObjects { - RootContect, + RootContext, IntegerNull, // Has to come after the RootContext to make the context stack safe ObjectProto, ArrayProto, @@ -175,7 +175,7 @@ public: Value *jsObjects; enum { NTypedArrayTypes = 9 }; // == TypedArray::NValues, avoid header dependency - GlobalContext *rootContext() const { return reinterpret_cast<GlobalContext *>(jsObjects + RootContect); } + GlobalContext *rootContext() const { return reinterpret_cast<GlobalContext *>(jsObjects + RootContext); } FunctionObject *objectCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + Object_Ctor); } FunctionObject *stringCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + String_Ctor); } FunctionObject *numberCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + Number_Ctor); } |