aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-09-18 09:18:12 +0300
committerOrgad Shaneh <orgads@gmail.com>2016-09-18 10:20:03 +0000
commit7fbbd8f2fd2a4db35f5aab2864e328ed2427074b (patch)
treef927d261a5aee9491a09806ed7f0f0be6c57b4ad /src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
parenta9e796535a715f3b8fe43b30e4ff3e9c4d0462ba (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.cpp2
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)