Fix coding style. Thanks Jérôme!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40406 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -162,10 +162,10 @@ EditListView::MouseDown(BPoint where)
|
||||
|
||||
int32 index = IndexOf(where);
|
||||
BListItem* item = ItemAt(index);
|
||||
if (!item)
|
||||
if (item == NULL)
|
||||
return;
|
||||
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
||||
if (!handler)
|
||||
if (handler == NULL)
|
||||
return;
|
||||
|
||||
fLastMouseDown = handler;
|
||||
@@ -185,10 +185,10 @@ EditListView::MouseUp(BPoint where)
|
||||
|
||||
int32 index = IndexOf(where);
|
||||
BListItem* item = ItemAt(index);
|
||||
if (!item)
|
||||
if (item == NULL)
|
||||
return;
|
||||
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
||||
if (!handler)
|
||||
if (handler == NULL)
|
||||
return;
|
||||
|
||||
handler->MouseUp(where);
|
||||
@@ -335,8 +335,7 @@ FolderConfigWindow::_ApplyChanges()
|
||||
for (unsigned int i = 0; i < fFolderList.size(); i++) {
|
||||
FolderInfo& info = fFolderList[i];
|
||||
CheckBoxItem* item = (CheckBoxItem*)fFolderListView->ItemAt(i);
|
||||
if ((info.subscribed && !item->Checked())
|
||||
|| (!info.subscribed && item->Checked())) {
|
||||
if ((info.subscribed != item->Checked())) {
|
||||
haveChanges = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user