From 25bc72972586c19fb9a8c4a94d5845b2d16af121 Mon Sep 17 00:00:00 2001 From: Alexander von Renteln Date: Mon, 21 Jan 2008 17:27:04 +0000 Subject: [PATCH] Make Quassel compile on MSVC. --- src/client/treemodel.cpp | 2 +- src/uisupport/bufferview.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.20.1