Some minor fixes to pass the capp_lint checks

This commit is contained in:
Bruce Doan
2013-10-09 00:09:30 +07:00
parent 8503081a6f
commit 6f8d6a5b25
2 changed files with 8 additions and 8 deletions
+4 -6
View File
@@ -353,9 +353,8 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0,
- (void)expandItem:(id)anItem expandChildren:(BOOL)shouldExpandChildren
{
if ([self _delegateRespondsToShouldExpandItem])
{
if ([_outlineViewDelegate outlineView:self shouldExpandItem:anItem] == NO) return;
}
if ([_outlineViewDelegate outlineView:self shouldExpandItem:anItem] == NO)
return;
var itemInfo = null;
@@ -433,9 +432,8 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0,
return;
if ([self _delegateRespondsToShouldCollapseItem])
{
if ([_outlineViewDelegate outlineView:self shouldCollapseItem:anItem] == NO) return;
}
if ([_outlineViewDelegate outlineView:self shouldCollapseItem:anItem] == NO)
return;
var itemInfo = _itemInfosForItems[[anItem UID]];
+4 -2
View File
@@ -371,7 +371,8 @@
- (BOOL)outlineView:(CPOutlineView)outlineView shouldExpandItem:(id)item
{
if(item == @".1") return NO;
if (item == @".1")
return NO;
return YES;
}
@end
@@ -382,7 +383,8 @@
- (BOOL)outlineView:(CPOutlineView)outlineView shouldCollapseItem:(id)item
{
if(item == @".1") return NO;
if (item == @".1")
return NO;
return YES;
}