bool removed = references.removeOne(node);
Q_ASSERT_X(removed, "deref", "Removing node that was not referenced");
+ Q_UNUSED(removed);
if (references.isEmpty())
type()->released(this);
void Data::updated(Data *oldData)
{
+ Q_UNUSED(oldData);
foreach (Node *node, references)
{
Q_ASSERT_X(node->parent(), "dynamicmodel", "Updating node without parent");
namespace DynamicModel {
Node::Node(Model *model, Node *parent, int totalRowCount, Data *data)
- : m_model(model), m_parent(parent), m_totalRowCount(totalRowCount),
+ : m_parent(parent), m_model(model), m_totalRowCount(totalRowCount),
m_data(data), m_childType(0)
{
Q_ASSERT_X((parent && data) || (!parent && !data), "dynamic model", "Root node has no data and no parent. Other nodes must have both");