Fix typo in Q_ASSERT_X warning.
authorGunnar Sletta <gunnar@sletta.org>
Sat, 1 Nov 2014 09:33:24 +0000 (10:33 +0100)
committerGunnar Sletta <gunnar@sletta.org>
Sat, 1 Nov 2014 09:39:41 +0000 (10:39 +0100)
Change-Id: I1415de93af35177fd643c21bcae2492a79187e50
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
src/quick/scenegraph/coreapi/qsgnode.cpp

index 6271d12..29e661c 100644 (file)
@@ -504,7 +504,7 @@ void QSGNode::insertChildNodeAfter(QSGNode *node, QSGNode *after)
 {
     //Q_ASSERT_X(!m_children.contains(node), "QSGNode::insertChildNodeAfter", "QSGNode is already a child!");
     Q_ASSERT_X(!node->m_parent, "QSGNode::insertChildNodeAfter", "QSGNode already has a parent");
-    Q_ASSERT_X(after && after->m_parent == this, "QSGNode::insertChildNodeBefore", "The parent of \'before\' is wrong");
+    Q_ASSERT_X(after && after->m_parent == this, "QSGNode::insertChildNodeAfter", "The parent of \'after\' is wrong");
 
 #ifndef QT_NO_DEBUG
     if (node->type() == QSGNode::GeometryNodeType) {