Ignore:
Timestamp:
Sep 17, 2009, 4:52:17 AM (13 years ago)
Author:
livings124
Message:

remove unnecessary alloca

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TrackerTableView.m

    r9133 r9134  
    4747    const CGFloat totalRowHeight = [self rowHeight] + [self intercellSpacing].height;
    4848   
    49     NSRect * gridRects = (NSRect *)alloca(sizeof(NSRect) * (ceil(visibleRect.size.height / totalRowHeight) / 2));
     49    NSRect gridRects[(NSInteger)(ceil(visibleRect.size.height / totalRowHeight) / 2)];
    5050    NSInteger rectNum = 0;
    5151   
     
    9494    if (start)
    9595        visibleRect.origin.y += totalRowHeight;
     96   
    9697    for (NSInteger i = start ? 1 : 0; i < numberBlankRows; i += 2)
    9798    {
Note: See TracChangeset for help on using the changeset viewer.