From d99b00a149e7828adb3c4651069483e51b0b458b Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 11 Feb 2009 00:01:36 +0100 Subject: Removed many pointless comparisons with NULL Sometimes it's nice for clarity, but most of the time this is just clutter. C++ != Java. :) --- src/gui/table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/table.cpp') diff --git a/src/gui/table.cpp b/src/gui/table.cpp index 425c5b6f..b79d43cf 100644 --- a/src/gui/table.cpp +++ b/src/gui/table.cpp @@ -186,7 +186,7 @@ int GuiTable::getColumnWidth(int i) void GuiTable::setSelectedRow(int selected) { - if (mModel == NULL) + if (!mModel) { mSelectedRow = -1; } @@ -214,7 +214,7 @@ void GuiTable::setSelectedRow(int selected) void GuiTable::setSelectedColumn(int selected) { - if (mModel == NULL) + if (!mModel) { mSelectedColumn = -1; } -- cgit v1.2.3-70-g09d2