Changeset 9134


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

remove unnecessary alloca

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PiecesView.m

    r7659 r9134  
    202202                                        [image size].width - (i + 1) * (fWidth + BETWEEN) - fExtraBorder);
    203203               
     204                #warning use NSRectFillListWithColors
    204205                [pieceColor set];
    205206                NSRectFill(rect);
  • 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    {
  • 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.