aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickvisualadaptormodel.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.com>2012-01-06 19:20:55 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-12 16:21:35 +0100
commitd402acbc892a8cf447acece100357694188a69e6 (patch)
treef00e50e5f5bb9ddb8de04cd53401978b1bffcca2 /src/quick/items/qquickvisualadaptormodel.cpp
parent39f9b5def185337b2087cadeb3e137dfbeb85fa4 (diff)
Remove out-of-line uses of qMalloc/qFree/qRealloc.
Per http://codereview.qt-project.org/#change,11562, we are trying to remove these in favour of direct allocation, or (in the case of inline code) specialised out-of-line wrappers. Change-Id: I113609c4f97dc5c8020a72cbd398572cdb5b7505 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/quick/items/qquickvisualadaptormodel.cpp')
-rw-r--r--src/quick/items/qquickvisualadaptormodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickvisualadaptormodel.cpp b/src/quick/items/qquickvisualadaptormodel.cpp
index 89e611cb5f..66c26ddf44 100644
--- a/src/quick/items/qquickvisualadaptormodel.cpp
+++ b/src/quick/items/qquickvisualadaptormodel.cpp
@@ -82,7 +82,7 @@ public:
{
if (propertyCache)
propertyCache->release();
- qFree(metaObject);
+ free(metaObject);
}
QMetaObject *metaObject;
@@ -642,7 +642,7 @@ public:
}
if (m_type->metaObject)
- qFree(m_type->metaObject);
+ free(m_type->metaObject);
m_type->metaObject = m_type->builder.toMetaObject();
*static_cast<QMetaObject *>(this) = *m_type->metaObject;