diff --git a/macosx/Torrent.h b/macosx/Torrent.h index a2c367b09..4deacb842 100644 --- a/macosx/Torrent.h +++ b/macosx/Torrent.h @@ -32,7 +32,7 @@ tr_handle_t * fLib; tr_torrent_t * fHandle; const tr_info_t * fInfo; - tr_stat_t * fStat; + const tr_stat_t * fStat; int fID; @@ -227,6 +227,6 @@ - (int) torrentID; - (const tr_info_t *) torrentInfo; -- (tr_stat_t *) torrentStat; +- (const tr_stat_t *) torrentStat; @end diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 7f9d1e213..73662b594 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1486,7 +1486,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 return fInfo; } -- (tr_stat_t *) torrentStat +- (const tr_stat_t *) torrentStat { return fStat; }