From: Alexander von Renteln Date: Mon, 21 Jan 2008 17:27:04 +0000 (+0000) Subject: Make Quassel compile on MSVC. X-Git-Tag: 0.2.0-alpha1~211 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=25bc72972586c19fb9a8c4a94d5845b2d16af121 Make Quassel compile on MSVC. --- diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index 929622d6..ffcec13c 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -429,7 +429,7 @@ void TreeModel::itemDataChanged(int column) { } void TreeModel::appendChild(AbstractTreeItem *parent, AbstractTreeItem *child) { - if(parent == 0 or child == 0) { + if(parent == 0 || child == 0) { qWarning() << "TreeModel::appendChild(parent, child) parent and child have to be valid pointers!" << parent << child; return; } diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index a0d5b28c..fd4c2457 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -113,5 +113,5 @@ void BufferView::rowsInserted(const QModelIndex & parent, int start, int end) { void BufferView::toggleHeader(bool checked) { QAction *action = qobject_cast(sender()); - header()->setSectionHidden((action->property("column")).toInt(), not checked); + header()->setSectionHidden((action->property("column")).toInt(), !checked); }