aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4object.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-02-13 12:19:04 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-21 13:01:41 +0000
commitfc5a11aadcf7a12ee5a1f91f567daefce28ada60 (patch)
tree4beeb467cddebfba77cc5bebd7d996a7d260911e /src/qml/jsruntime/qv4object.cpp
parent99b15c8f47c6ce5f7d63e19b2e2429536c254064 (diff)
Get rid of asManaged()
Change-Id: I853417fdf1cc339f7d43a006c20e1626b6bfb288 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r--src/qml/jsruntime/qv4object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp
index 37f136024a..ad26aa72fb 100644
--- a/src/qml/jsruntime/qv4object.cpp
+++ b/src/qml/jsruntime/qv4object.cpp
@@ -356,7 +356,7 @@ bool Object::hasOwnProperty(uint index) const
return true;
if (isStringObject()) {
- String *s = static_cast<const StringObject *>(this)->d()->value.asString();
+ String *s = static_cast<const StringObject *>(this)->d()->value.as<String>();
if (index < (uint)s->d()->length())
return true;
}
@@ -416,7 +416,7 @@ PropertyAttributes Object::queryIndexed(const Managed *m, uint index)
return o->arrayData()->attributes(index);
if (o->isStringObject()) {
- String *s = static_cast<const StringObject *>(o)->d()->value.asString();
+ String *s = static_cast<const StringObject *>(o)->d()->value.as<String>();
if (index < (uint)s->d()->length())
return (Attr_NotWritable|Attr_NotConfigurable);
}