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);
|
int32 index = IndexOf(where);
|
||||||
BListItem* item = ItemAt(index);
|
BListItem* item = ItemAt(index);
|
||||||
if (!item)
|
if (item == NULL)
|
||||||
return;
|
return;
|
||||||
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
||||||
if (!handler)
|
if (handler == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fLastMouseDown = handler;
|
fLastMouseDown = handler;
|
||||||
@@ -185,10 +185,10 @@ EditListView::MouseUp(BPoint where)
|
|||||||
|
|
||||||
int32 index = IndexOf(where);
|
int32 index = IndexOf(where);
|
||||||
BListItem* item = ItemAt(index);
|
BListItem* item = ItemAt(index);
|
||||||
if (!item)
|
if (item == NULL)
|
||||||
return;
|
return;
|
||||||
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
||||||
if (!handler)
|
if (handler == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
handler->MouseUp(where);
|
handler->MouseUp(where);
|
||||||
@@ -335,8 +335,7 @@ FolderConfigWindow::_ApplyChanges()
|
|||||||
for (unsigned int i = 0; i < fFolderList.size(); i++) {
|
for (unsigned int i = 0; i < fFolderList.size(); i++) {
|
||||||
FolderInfo& info = fFolderList[i];
|
FolderInfo& info = fFolderList[i];
|
||||||
CheckBoxItem* item = (CheckBoxItem*)fFolderListView->ItemAt(i);
|
CheckBoxItem* item = (CheckBoxItem*)fFolderListView->ItemAt(i);
|
||||||
if ((info.subscribed && !item->Checked())
|
if ((info.subscribed != item->Checked())) {
|
||||||
|| (!info.subscribed && item->Checked())) {
|
|
||||||
haveChanges = true;
|
haveChanges = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user