]> Some of my projects - localmylist.git/commitdiff
Build fixes.
authorAPTX <redacted>
Sat, 31 Aug 2013 16:04:21 +0000 (18:04 +0200)
committerAPTX <redacted>
Sat, 31 Aug 2013 16:04:21 +0000 (18:04 +0200)
localmylist/dynamicmodel/data.cpp
localmylist/dynamicmodel/datatype.cpp
localmylist/dynamicmodel/datatype.h
localmylist/dynamicmodel/node.cpp
localmylist/dynamicmodel/node.h

index 57f85df..3fa9e33 100644 (file)
@@ -56,6 +56,7 @@ void Data::deref(Node *node)
        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);
@@ -63,6 +64,7 @@ void Data::deref(Node *node)
 
 void Data::updated(Data *oldData)
 {
+       Q_UNUSED(oldData);
        foreach (Node *node, references)
        {
                Q_ASSERT_X(node->parent(), "dynamicmodel", "Updating node without parent");
index 2457f0f..b3fac51 100644 (file)
@@ -4,7 +4,6 @@
 #include <QSqlQuery>
 #include "../database.h"
 #include "../mylist.h"
-#include "data.h"
 
 namespace LocalMyList {
 namespace DynamicModel {
index 76b338d..3792df1 100644 (file)
@@ -2,9 +2,11 @@
 #define ABSTRACTDATATYPE_H
 
 #include "../localmylist_global.h"
-#include "datamodel.h"
 #include "../sqlasyncquery.h"
 
+#include "datamodel.h"
+#include "data.h"
+
 #include <QObject>
 #include <QString>
 #include <QStringList>
@@ -12,7 +14,6 @@
 namespace LocalMyList {
 namespace DynamicModel {
 
-class Data;
 class Node;
 class DataModel;
 
index 552bc1a..9baa623 100644 (file)
@@ -13,7 +13,7 @@ namespace LocalMyList {
 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");
index 1790d2b..ea25af0 100644 (file)
@@ -57,9 +57,9 @@ private:
        NodeFactory childNodeFactory();
 
        Node *m_parent;
+       Model *m_model;
        NodeList m_children;
        int m_totalRowCount;
-       Model *m_model;
 
        Data *m_data;
        DataType *m_childType;