summaryrefslogtreecommitdiffstats
path: root/src/activeqt/container/qaxwidget.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2016-03-22 14:21:54 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2016-03-22 13:53:39 +0000
commit2faaec4e061c7f531624cad3cba5921ed3a51b20 (patch)
treedb64708234b86488b75d0da1c7148e37744a5e14 /src/activeqt/container/qaxwidget.h
parentff0f9e1b390fa391e85d379aff767309bb916526 (diff)
Fix warnings as shown by Qt Creator's Clang based code model.
Remove C-style casts and fix integer conversion issues. Task-number: QTBUG-50804 Change-Id: Ib5913bc5262a2c141f34d9f70fe6ec4139a63e4f Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
Diffstat (limited to 'src/activeqt/container/qaxwidget.h')
-rw-r--r--src/activeqt/container/qaxwidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/activeqt/container/qaxwidget.h b/src/activeqt/container/qaxwidget.h
index a663d69..5200f69 100644
--- a/src/activeqt/container/qaxwidget.h
+++ b/src/activeqt/container/qaxwidget.h
@@ -95,13 +95,13 @@ private:
template <> inline QAxWidget *qobject_cast<QAxWidget*>(const QObject *o)
{
void *result = o ? const_cast<QObject *>(o)->qt_metacast("QAxWidget") : Q_NULLPTR;
- return (QAxWidget*)(result);
+ return static_cast<QAxWidget *>(result);
}
template <> inline QAxWidget *qobject_cast<QAxWidget*>(QObject *o)
{
void *result = o ? o->qt_metacast("QAxWidget") : Q_NULLPTR;
- return (QAxWidget*)(result);
+ return static_cast<QAxWidget *>(result);
}
QT_END_NAMESPACE