Commit 601c7383 authored by Kent Hansen's avatar Kent Hansen Committed by Qt by Nokia

Fix compiler warnings in QQmlType

clang said:

warning: expression result unused; should this cast be to 'void'?
 [-Wunused-value]

Change-Id: I51f9e2165f3ed550f599f4e3e7693f8e7eebbe1e
Reviewed-by: default avatarJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: default avatarMichael Brasser <michael.brasser@nokia.com>
parent cca3f8bb
......@@ -517,7 +517,7 @@ QObject *QQmlType::create() const
d->m_newFunc(rv);
if (rv && !d->m_metaObjects.isEmpty())
(void *)new QQmlProxyMetaObject(rv, &d->m_metaObjects);
(void)new QQmlProxyMetaObject(rv, &d->m_metaObjects);
return rv;
}
......@@ -530,7 +530,7 @@ void QQmlType::create(QObject **out, void **memory, size_t additionalMemory) con
d->m_newFunc(rv);
if (rv && !d->m_metaObjects.isEmpty())
(void *)new QQmlProxyMetaObject(rv, &d->m_metaObjects);
(void)new QQmlProxyMetaObject(rv, &d->m_metaObjects);
*out = rv;
*memory = ((char *)rv) + d->m_allocationSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment