Initialized member variables of DownloadResult in its ctor.

pull/1/head
Tatsuhiro Tsujikawa 2011-06-12 00:51:36 +09:00
parent 65ec9e98df
commit ba9673be1d
1 changed files with 13 additions and 1 deletions

View File

@ -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() {}