diff options
author | Tim Jenssen <tim.jenssen@qt.io> | 2017-06-29 12:37:16 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2017-07-18 11:51:43 +0000 |
commit | 5e38bdbfd8bef6c3bdcede9fe0be11f34e9a0f7c (patch) | |
tree | d6b2ee7a0f89b3f114f76fe72678423b29099aab | |
parent | 98764a44a708ee8051611089ff2ba1e3cd8b2c15 (diff) |
Scxml: use qobject_cast instead of static_cast
Change-Id: Ibcaca17a91856f041fcf9f28c8be6bdc2df63fe6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/scxmleditor/outputpane/warningmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scxmleditor/outputpane/warningmodel.cpp b/src/plugins/scxmleditor/outputpane/warningmodel.cpp index 23a406a323..2fb950d089 100644 --- a/src/plugins/scxmleditor/outputpane/warningmodel.cpp +++ b/src/plugins/scxmleditor/outputpane/warningmodel.cpp @@ -239,7 +239,7 @@ Warning *WarningModel::getWarning(const QModelIndex &ind) void WarningModel::warningDestroyed(QObject *ww) { - auto w = static_cast<Warning*>(ww); + auto w = qobject_cast<Warning*>(ww); if (m_warnings.contains(w)) { int ind = m_warnings.indexOf(w); beginRemoveRows(QModelIndex(), ind, ind); |