ScxmlEditor: Cleanup nullptr comparisons

Change-Id: I8b61929f1d23a6a7c46043b8967c1aebe333a7e7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Orgad Shaneh
2016-09-18 09:18:12 +03:00
committed by Orgad Shaneh
parent a9e796535a
commit 7fbbd8f2fd
9 changed files with 19 additions and 19 deletions

View File

@@ -508,7 +508,7 @@ ScxmlTag *ScxmlDocument::currentTag() const
void ScxmlDocument::changeParent(ScxmlTag *child, ScxmlTag *newParent, int tagIndex)
{
if (child && child->parentTag() != newParent && !m_undoRedoRunning)
m_undoStack->push(new ChangeParentCommand(this, child, newParent == nullptr ? rootTag() : newParent, tagIndex));
m_undoStack->push(new ChangeParentCommand(this, child, !newParent ? rootTag() : newParent, tagIndex));
}
void ScxmlDocument::changeOrder(ScxmlTag *child, int newPos)