summaryrefslogtreecommitdiff
path: root/src/RequestGroup.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2013-08-20 18:57:17 +0200
committerNils Maier <maierman@web.de>2013-08-20 21:28:24 +0200
commitd8f44ef4f6c5ad86b08658ecba41a84b775b6e69 (patch)
treed149687d1dc46fbd641735d71551e5990080e1fb /src/RequestGroup.cc
parent9da17424c62ebabf7c407695e6990cdd9820ebc9 (diff)
Convert most 0/NULL pointers to nullptr
Courtesy of llvm cpp11-migrate 3.3
Diffstat (limited to 'src/RequestGroup.cc')
-rw-r--r--src/RequestGroup.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc
index aef696ec..93c466df 100644
--- a/src/RequestGroup.cc
+++ b/src/RequestGroup.cc
@@ -141,15 +141,15 @@ RequestGroup::RequestGroup(const std::shared_ptr<GroupId>& gid,
fileNotFoundCount_(0),
timeout_(option->getAsInt(PREF_TIMEOUT)),
#ifdef ENABLE_BITTORRENT
- btRuntime_(0),
- peerStorage_(0),
+ btRuntime_(nullptr),
+ peerStorage_(nullptr),
#endif // ENABLE_BITTORRENT
inMemoryDownload_(false),
maxDownloadSpeedLimit_(option->getAsInt(PREF_MAX_DOWNLOAD_LIMIT)),
maxUploadSpeedLimit_(option->getAsInt(PREF_MAX_UPLOAD_LIMIT)),
lastErrorCode_(error_code::UNDEFINED),
belongsToGID_(0),
- requestGroupMan_(0),
+ requestGroupMan_(nullptr),
resumeFailureCount_(0)
{
fileAllocationEnabled_ = option_->get(PREF_FILE_ALLOCATION) != V_NONE;
@@ -314,7 +314,7 @@ void RequestGroup::createInitialCommand
}
}
- DefaultBtProgressInfoFile* progressInfoFilePtr = 0;
+ DefaultBtProgressInfoFile* progressInfoFilePtr = nullptr;
std::shared_ptr<BtProgressInfoFile> progressInfoFile;
if(!metadataGetMode) {
progressInfoFilePtr = new DefaultBtProgressInfoFile(downloadContext_,
@@ -997,8 +997,8 @@ void RequestGroup::releaseRuntimeResource(DownloadEngine* e)
{
#ifdef ENABLE_BITTORRENT
e->getBtRegistry()->remove(gid_->getNumericId());
- btRuntime_ = 0;
- peerStorage_ = 0;
+ btRuntime_ = nullptr;
+ peerStorage_ = nullptr;
#endif // ENABLE_BITTORRENT
if(pieceStorage_) {
pieceStorage_->removeAdvertisedPiece(0);