diff options
| author | Lars Knoll <lars.knoll@digia.com> | 2014-05-09 15:06:29 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-07-22 13:49:19 +0200 |
| commit | 903e04deadb4b8f13a77c8a741c0f937beca0640 (patch) | |
| tree | 7a502afea535428de7192b64e929e260bc539d24 /src/qml/jsruntime/qv4object.cpp | |
| parent | 133ea9d0f1c2dc73b916f5993616a1dd88be98a1 (diff) | |
Convert String to new constructor syntax
Change-Id: I07f7667d3d72a7d72e6717d194de8d7b15435777
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp index b8993d3bde..d8570758df 100644 --- a/src/qml/jsruntime/qv4object.cpp +++ b/src/qml/jsruntime/qv4object.cpp @@ -384,7 +384,7 @@ bool Object::hasOwnProperty(uint index) const return true; if (isStringObject()) { String *s = static_cast<const StringObject *>(this)->d()->value.asString(); - if (index < (uint)s->length()) + if (index < (uint)s->d()->length()) return true; } if (!queryIndexed(index).isEmpty()) @@ -444,7 +444,7 @@ PropertyAttributes Object::queryIndexed(const Managed *m, uint index) if (o->isStringObject()) { String *s = static_cast<const StringObject *>(o)->d()->value.asString(); - if (index < (uint)s->length()) + if (index < (uint)s->d()->length()) return (Attr_NotWritable|Attr_NotConfigurable); } return Attr_Invalid; |
