diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-09-18 09:18:12 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-09-18 10:20:03 +0000 |
commit | 7fbbd8f2fd2a4db35f5aab2864e328ed2427074b (patch) | |
tree | f927d261a5aee9491a09806ed7f0f0be6c57b4ad /src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp | |
parent | a9e796535a715f3b8fe43b30e4ff3e9c4d0462ba (diff) |
ScxmlEditor: Cleanup nullptr comparisons
Change-Id: I8b61929f1d23a6a7c46043b8967c1aebe333a7e7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp')
-rw-r--r-- | src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp index 7e665d6605..22cbdf4d4e 100644 --- a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp +++ b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp @@ -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) |