mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Fix typo in variable name
This commit is contained in:
parent
c3f002a544
commit
a1992acc16
1 changed files with 3 additions and 3 deletions
|
@ -339,9 +339,9 @@ TorrentInfo::PieceRange TorrentInfo::filePieces(int fileIndex) const
|
||||||
|
|
||||||
const libt::file_storage &files = nativeInfo()->files();
|
const libt::file_storage &files = nativeInfo()->files();
|
||||||
const auto fileSize = files.file_size(fileIndex);
|
const auto fileSize = files.file_size(fileIndex);
|
||||||
const auto firstOffset = files.file_offset(fileIndex);
|
const auto fileOffset = files.file_offset(fileIndex);
|
||||||
return makeInterval(static_cast<int>(firstOffset / pieceLength()),
|
return makeInterval(static_cast<int>(fileOffset / pieceLength()),
|
||||||
static_cast<int>((firstOffset + fileSize - 1) / pieceLength()));
|
static_cast<int>((fileOffset + fileSize - 1) / pieceLength()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TorrentInfo::renameFile(const int index, const QString &newPath)
|
void TorrentInfo::renameFile(const int index, const QString &newPath)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue