aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4objectiterator.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-18 14:30:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-22 01:06:20 +0200
commit1aa618970a9bed46123d0648500e957688d725ec (patch)
tree1235d0de9aacc2e01b41f06b3bb50ddab7c3d39b /src/qml/jsruntime/qv4objectiterator.cpp
parent3c325823a778e1a6542eb746e047d5d7bfb43566 (diff)
Use StringRef for most methods in Object
Change-Id: I8e2dad0e9e34c5a549952bc0765cd57f6aa8aadf Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4objectiterator.cpp')
-rw-r--r--src/qml/jsruntime/qv4objectiterator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4objectiterator.cpp b/src/qml/jsruntime/qv4objectiterator.cpp
index f03c2d6b86..a9c9e817f7 100644
--- a/src/qml/jsruntime/qv4objectiterator.cpp
+++ b/src/qml/jsruntime/qv4objectiterator.cpp
@@ -70,7 +70,9 @@ Property *ObjectIterator::next(String **name, uint *index, PropertyAttributes *a
if (current != object) {
Property *pp;
if (*name) {
- pp = object->__getPropertyDescriptor__(*name);
+ Scope scope(object->engine());
+ ScopedString n(scope, *name);
+ pp = object->__getPropertyDescriptor__(n);
} else {
assert (*index != UINT_MAX);
pp = object->__getPropertyDescriptor__(*index);