From 5e38bdbfd8bef6c3bdcede9fe0be11f34e9a0f7c Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Thu, 29 Jun 2017 12:37:16 +0200 Subject: [PATCH] Scxml: use qobject_cast instead of static_cast Change-Id: Ibcaca17a91856f041fcf9f28c8be6bdc2df63fe6 Reviewed-by: Christian Stenger --- src/plugins/scxmleditor/outputpane/warningmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/scxmleditor/outputpane/warningmodel.cpp b/src/plugins/scxmleditor/outputpane/warningmodel.cpp index 23a406a3230..2fb950d0892 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(ww); + auto w = qobject_cast(ww); if (m_warnings.contains(w)) { int ind = m_warnings.indexOf(w); beginRemoveRows(QModelIndex(), ind, ind);