mirror of https://github.com/aria2/aria2
Initialized member variables of DownloadResult in its ctor.
parent
65ec9e98df
commit
ba9673be1d
|
@ -39,7 +39,19 @@
|
|||
|
||||
namespace aria2 {
|
||||
|
||||
DownloadResult::DownloadResult() {}
|
||||
DownloadResult::DownloadResult()
|
||||
: gid(0),
|
||||
inMemoryDownload(false),
|
||||
sessionDownloadLength(0),
|
||||
sessionTime(0),
|
||||
result(error_code::UNDEFINED),
|
||||
belongsTo(0),
|
||||
totalLength(0),
|
||||
completedLength(0),
|
||||
uploadLength(0),
|
||||
pieceLength(0),
|
||||
numPieces(0)
|
||||
{}
|
||||
|
||||
DownloadResult::~DownloadResult() {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue