Skip to content

Commit

Permalink
Fixed some static code analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Wave39 committed Nov 7, 2014
1 parent 2fa2d17 commit c78bde2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Classes/MDSpreadView.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ extern NSString *MDSpreadViewSelectionDidChangeNotification __attribute__((unava
NSMutableArray *columnSections;
NSMutableArray *rowSections;

UIView *dummyView;
UIView *dummyViewB;
// UIView *dummyView;
// UIView *dummyViewB;

CGSize dequeuedCellSizeHint;
MDIndexPath *dequeuedCellRowIndexHint;
Expand All @@ -188,15 +188,15 @@ extern NSString *MDSpreadViewSelectionDidChangeNotification __attribute__((unava

// Done with new algorithm

NSMutableArray *visibleCells; // array of array
// NSMutableArray *visibleCells; // array of array
MDIndexPath *_visibleRowIndexPath;
MDIndexPath *_visibleColumnIndexPath;
CGRect visibleBounds;

NSMutableArray *_headerRowCells;
NSMutableArray *_headerColumnCells;
MDSpreadViewCell *_headerCornerCell;
CGRect _headerBounds;
// CGRect _headerBounds;

MDIndexPath *_headerRowIndexPath;
MDIndexPath *_headerColumnIndexPath;
Expand Down
2 changes: 0 additions & 2 deletions Classes/MDSpreadView.m
Original file line number Diff line number Diff line change
Expand Up @@ -3924,12 +3924,10 @@ - (void)_touchesEndedInCell:(MDSpreadViewCell *)cell

MDSpreadViewSelectionMode resolvedSelectionMode = MDSpreadViewSelectionModeAutomatic;

BOOL override = NO;
MDSortDescriptor *sortDescriptorPrototype = nil;
if (_autoAllowSortableHeaderSelection) {
if ([(MDSpreadViewHeaderCell *)cell respondsToSelector:@selector(sortDescriptorPrototype)] && [(MDSpreadViewHeaderCell *)cell sortDescriptorPrototype]) {
sortDescriptorPrototype = [(MDSpreadViewHeaderCell *)cell sortDescriptorPrototype];
override = YES;

resolvedSelectionMode = MDSpreadViewSelectionModeCell + sortDescriptorPrototype.sortAxis;
}
Expand Down

0 comments on commit c78bde2

Please sign in to comment.