mirror of
https://github.com/transmission/transmission
synced 2025-03-09 21:54:09 +00:00
now that the types have been converted, revert some that shouldn't have been
This commit is contained in:
parent
9814920756
commit
c9e5427ed6
5 changed files with 7 additions and 7 deletions
|
@ -176,7 +176,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (void) drawRow: (int) row clipRect: (NSRect) clipRect
|
||||
- (void) drawRow: (NSInteger) row clipRect: (NSRect) clipRect
|
||||
{
|
||||
if (![self isRowSelected: row])
|
||||
{
|
||||
|
|
|
@ -228,7 +228,7 @@
|
|||
}
|
||||
|
||||
#warning don't cut off end
|
||||
- (float) tableView: (NSTableView *) tableView heightOfRow: (NSInteger) row
|
||||
- (CGFloat) tableView: (NSTableView *) tableView heightOfRow: (NSInteger) row
|
||||
{
|
||||
NSTableColumn * column = [tableView tableColumnWithIdentifier: @"Message"];
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
}
|
||||
|
||||
int8_t * pieces = NULL;
|
||||
CGFloat * piecesPercent = NULL;
|
||||
float * piecesPercent = NULL;
|
||||
|
||||
BOOL showAvailablity = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
|
||||
if (showAvailablity)
|
||||
|
@ -126,7 +126,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
piecesPercent = (CGFloat *)tr_malloc(fNumPieces * sizeof(CGFloat));
|
||||
piecesPercent = (float *)tr_malloc(fNumPieces * sizeof(float));
|
||||
[fTorrent getAmountFinished: piecesPercent size: fNumPieces];
|
||||
}
|
||||
|
||||
|
|
|
@ -999,12 +999,12 @@ void completenessChangeCallback(tr_torrent * torrent, tr_completeness status, vo
|
|||
|
||||
- (NSArray *) peers
|
||||
{
|
||||
NSInteger totalPeers;
|
||||
int totalPeers;
|
||||
tr_peer_stat * peers = tr_torrentPeers(fHandle, &totalPeers);
|
||||
|
||||
NSMutableArray * peerDicts = [NSMutableArray arrayWithCapacity: totalPeers];
|
||||
|
||||
for (NSInteger i = 0; i < totalPeers; i++)
|
||||
for (int i = 0; i < totalPeers; i++)
|
||||
{
|
||||
tr_peer_stat * peer = &peers[i];
|
||||
NSMutableDictionary * dict = [NSMutableDictionary dictionaryWithCapacity: 9];
|
||||
|
|
|
@ -674,7 +674,7 @@
|
|||
Torrent * torrent = [self representedObject];
|
||||
|
||||
NSInteger pieceCount = MIN([torrent pieceCount], MAX_PIECES);
|
||||
CGFloat * piecesPercent = malloc(pieceCount * sizeof(CGFloat));
|
||||
float * piecesPercent = malloc(pieceCount * sizeof(float));
|
||||
[torrent getAmountFinished: piecesPercent size: pieceCount];
|
||||
|
||||
NSBitmapImageRep * bitmap = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: nil
|
||||
|
|
Loading…
Add table
Reference in a new issue