aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory
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/memory
parent99b15c8f47c6ce5f7d63e19b2e2429536c254064 (diff)
Get rid of asManaged()
Change-Id: I853417fdf1cc339f7d43a006c20e1626b6bfb288 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/memory')
-rw-r--r--src/qml/memory/qv4mm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp
index 07408a343c..07e8b11f42 100644
--- a/src/qml/memory/qv4mm.cpp
+++ b/src/qml/memory/qv4mm.cpp
@@ -381,7 +381,7 @@ void MemoryManager::sweep(bool lastSweep)
{
if (m_weakValues) {
for (PersistentValueStorage::Iterator it = m_weakValues->begin(); it != m_weakValues->end(); ++it) {
- if (Managed *m = (*it).asManaged()) {
+ if (Managed *m = (*it).as<Managed>()) {
if (!m->markBit())
(*it) = Primitive::undefinedValue();
}
@@ -607,7 +607,7 @@ void MemoryManager::collectFromJSStack() const
Value *v = m_d->engine->jsStackBase;
Value *top = m_d->engine->jsStackTop;
while (v < top) {
- Managed *m = v->asManaged();
+ Managed *m = v->as<Managed>();
if (m && m->inUse())
// Skip pointers to already freed objects, they are bogus as well
m->mark(m_d->engine);