summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@theqtcompany.com>2016-03-23 10:10:57 +0100
committerDavid Schulz <david.schulz@theqtcompany.com>2016-03-23 09:23:27 +0000
commita4b8485cd38a9c33cdcf1b97633fa65b7230643b (patch)
tree41f87999a87547579bc1495bedae4c71b98eb16c
parent2faaec4e061c7f531624cad3cba5921ed3a51b20 (diff)
Fix old-style cast compile error in qaxobject.h.
Change-Id: Ie313a60c7d1c55f4c281544d7fbeb3f176e2c8e5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
-rw-r--r--src/activeqt/container/qaxobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/activeqt/container/qaxobject.h b/src/activeqt/container/qaxobject.h
index 288e533..69d5c61 100644
--- a/src/activeqt/container/qaxobject.h
+++ b/src/activeqt/container/qaxobject.h
@@ -71,13 +71,13 @@ private:
template <> inline QAxObject *qobject_cast<QAxObject*>(const QObject *o)
{
void *result = o ? const_cast<QObject *>(o)->qt_metacast("QAxObject") : Q_NULLPTR;
- return (QAxObject*)(result);
+ return reinterpret_cast<QAxObject*>(result);
}
template <> inline QAxObject *qobject_cast<QAxObject*>(QObject *o)
{
void *result = o ? o->qt_metacast("QAxObject") : Q_NULLPTR;
- return (QAxObject*)(result);
+ return reinterpret_cast<QAxObject*>(result);
}
QT_END_NAMESPACE