mirror of https://github.com/aria2/aria2
Make DownloadHandle::getNumPieces() return int
parent
1a953d5f93
commit
9f4f888e39
|
@ -527,7 +527,7 @@ struct RequestGroupDH : public DownloadHandle {
|
||||||
const SharedHandle<DownloadContext>& dctx = group->getDownloadContext();
|
const SharedHandle<DownloadContext>& dctx = group->getDownloadContext();
|
||||||
return dctx->getPieceLength();
|
return dctx->getPieceLength();
|
||||||
}
|
}
|
||||||
virtual size_t getNumPieces()
|
virtual int getNumPieces()
|
||||||
{
|
{
|
||||||
return group->getDownloadContext()->getNumPieces();
|
return group->getDownloadContext()->getNumPieces();
|
||||||
}
|
}
|
||||||
|
@ -631,7 +631,7 @@ struct DownloadResultDH : public DownloadHandle {
|
||||||
{
|
{
|
||||||
return dr->pieceLength;
|
return dr->pieceLength;
|
||||||
}
|
}
|
||||||
virtual size_t getNumPieces()
|
virtual int getNumPieces()
|
||||||
{
|
{
|
||||||
return dr->numPieces;
|
return dr->numPieces;
|
||||||
}
|
}
|
||||||
|
|
|
@ -472,7 +472,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Returns the number of pieces.
|
* Returns the number of pieces.
|
||||||
*/
|
*/
|
||||||
virtual size_t getNumPieces() = 0;
|
virtual int getNumPieces() = 0;
|
||||||
/**
|
/**
|
||||||
* Returns the number of peers/servers the client has connected to.
|
* Returns the number of peers/servers the client has connected to.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue