ScxmlEditor: Modernize

modernize-*

Change-Id: I72a72cf5e9327956fdc0e5fc6f552bfc03d2122c
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
Alessandro Portale
2018-11-24 20:21:25 +01:00
parent 6474b129e6
commit 24ecd7fe6a
19 changed files with 39 additions and 43 deletions

View File

@@ -36,7 +36,7 @@ void AttributeItemModel::setTag(ScxmlTag *tag)
{
beginResetModel();
m_tag = tag;
m_document = m_tag ? m_tag->document() : 0;
m_document = m_tag ? m_tag->document() : nullptr;
endResetModel();
emit layoutChanged();
emit dataChanged(QModelIndex(), QModelIndex());