Merge pull request #142 from TheOneRing/Fix-build-with-Qt-5.5
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 30 Jul 2015 10:53:21 +0000 (12:53 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 30 Jul 2015 10:53:21 +0000 (12:53 +0200)
Fix build with Qt-5.5

src/client/treemodel.cpp
src/common/peer.h

index f599803..fd47bc0 100644 (file)
@@ -556,10 +556,9 @@ void TreeModel::endAppendChilds()
     ChildStatus cs = _childStatus;
 #ifndef QT_NO_DEBUG
     QModelIndex parent = indexByItem(parentItem);
-#endif
     Q_ASSERT(cs.parent == parent);
     Q_ASSERT(rowCount(parent) == cs.childCount + cs.end - cs.start + 1);
-
+#endif
     _aboutToRemoveOrInsert = false;
     for (int i = cs.start; i <= cs.end; i++) {
         connectItem(parentItem->child(i));
@@ -605,9 +604,9 @@ void TreeModel::endRemoveChilds()
 #ifndef QT_NO_DEBUG
     ChildStatus cs = _childStatus;
     QModelIndex parent = indexByItem(parentItem);
-#endif
     Q_ASSERT(cs.parent == parent);
     Q_ASSERT(rowCount(parent) == cs.childCount - cs.end + cs.start - 1);
+#endif
     _aboutToRemoveOrInsert = false;
 
     endRemoveRows();
index 02eb3c0..79204b4 100644 (file)
@@ -22,6 +22,7 @@
 #define PEER_H
 
 #include <QAbstractSocket>
+#include <QDataStream>
 #include <QPointer>
 
 #include "authhandler.h"