Browse files

Corrected some analyzer warnings

  • Loading branch information...
1 parent e04f60b commit 47957eaa705a8745658639473dec49f176720901 @kgn committed Feb 20, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −0 BCCollectionView+Mouse.m
  2. +0 −1 BCCollectionView.h
  3. +0 −3 BCCollectionViewLayoutOperation.m
View
1 BCCollectionView+Mouse.m
@@ -86,6 +86,7 @@ - (void)regularMouseDragged:(NSEvent *)anEvent
selectionChangedDisabled = NO;
if (![selectionIndexes isEqual:originalSet])
[self performSelector:@selector(delegateCollectionViewSelectionDidChange)];
+ [originalSet release];
}
- (void)mouseDragged:(NSEvent *)anEvent
View
1 BCCollectionView.h
@@ -35,7 +35,6 @@
NSInteger dragHoverIndex;
BOOL isDragging;
- BOOL firstDrag;
BOOL selectionChangedDisabled;
NSString *zoomValueObserverKey;
View
3 BCCollectionViewLayoutOperation.m
@@ -78,9 +78,6 @@ - (void)main
if ([group itemRange].location + [group itemRange].length-1 == i)
group = [groupEnum nextObject];
}
- numberOfRows = MAX(numberOfRows, [[collectionView groups] count]);
- if ([[collectionView contentArray] count] > 0 && numberOfRows == -1)
- numberOfRows = 1;
if (![self isCancelled]) {
dispatch_async(dispatch_get_main_queue(), ^{

0 comments on commit 47957ea

Please sign in to comment.