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/TorrentTableView.m

    r9133 r9134  
    683683    const CGFloat totalRowHeight = [self rowHeight] + [self intercellSpacing].height;
    684684   
    685     NSRect * gridRects = (NSRect *)alloca(sizeof(NSRect) * (ceil(visibleRect.size.height / totalRowHeight) / 2));
     685    NSRect gridRects[(NSInteger)(ceil(visibleRect.size.height / totalRowHeight) / 2)];
    686686    NSInteger rectNum = 0;
    687687   
     
    730730    if (start)
    731731        visibleRect.origin.y += totalRowHeight;
     732   
    732733    for (NSInteger i = start ? 1 : 0; i < numberBlankRows; i += 2)
    733734    {
Note: See TracChangeset for help on using the changeset viewer.