diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-06 15:57:06 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-06 16:10:21 +0200 |
commit | 8b5fbb56299851896fbcf136bdcfdcd4487484b5 (patch) | |
tree | 16a5a586d2dbe0b8e6d60b0ba76803dcce2560db /src/qml/types/qqmllistmodel.cpp | |
parent | 19c6f620dd35916466c36234231d798f79732ab0 (diff) |
Get rid of v8::Local
The class was doing exactly the same thing as v8::Handle
in our implementation. Removing it cleans up quite a bit
of code.
Change-Id: I37a3dcdef062fc388751e9ef0a158b5926ba2efb
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qqmllistmodel.cpp')
-rw-r--r-- | src/qml/types/qqmllistmodel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/qml/types/qqmllistmodel.cpp b/src/qml/types/qqmllistmodel.cpp index 8b22047192..755103c9ba 100644 --- a/src/qml/types/qqmllistmodel.cpp +++ b/src/qml/types/qqmllistmodel.cpp @@ -415,12 +415,12 @@ void ListModel::set(int elementIndex, v8::Handle<v8::Object> object, QVector<int { ListElement *e = elements[elementIndex]; - v8::Local<v8::Array> propertyNames = object->GetPropertyNames(); + v8::Handle<v8::Array> propertyNames = object->GetPropertyNames(); int propertyCount = propertyNames->Length(); for (int i=0 ; i < propertyCount ; ++i) { - v8::Local<v8::String> propertyName = propertyNames->Get(i)->ToString(); - v8::Local<v8::Value> propertyValue = object->Get(propertyName); + v8::Handle<v8::String> propertyName = propertyNames->Get(i)->ToString(); + v8::Handle<v8::Value> propertyValue = object->Get(propertyName); // Check if this key exists yet int roleIndex = -1; @@ -486,12 +486,12 @@ void ListModel::set(int elementIndex, v8::Handle<v8::Object> object, QV8Engine * { ListElement *e = elements[elementIndex]; - v8::Local<v8::Array> propertyNames = object->GetPropertyNames(); + v8::Handle<v8::Array> propertyNames = object->GetPropertyNames(); int propertyCount = propertyNames->Length(); for (int i=0 ; i < propertyCount ; ++i) { - v8::Local<v8::String> propertyName = propertyNames->Get(i)->ToString(); - v8::Local<v8::Value> propertyValue = object->Get(propertyName); + v8::Handle<v8::String> propertyName = propertyNames->Get(i)->ToString(); + v8::Handle<v8::Value> propertyValue = object->Get(propertyName); // Add the value now if (propertyValue->IsString()) { |