From 07d270c87e6f9184aea4ca17eb26e466712e8db2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 22 Jun 2013 01:10:38 +0900 Subject: Require -std=c++11 and use std::shared_ptr instead of SharedHandle --- src/BtFileAllocationEntry.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/BtFileAllocationEntry.cc') diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc index debeacdc..7b96f1c4 100644 --- a/src/BtFileAllocationEntry.cc +++ b/src/BtFileAllocationEntry.cc @@ -67,7 +67,7 @@ void BtFileAllocationEntry::prepareForNextAction // For DownloadContext::resetDownloadStartTime(), see also // RequestGroup::createInitialCommand() getRequestGroup()->getDownloadContext()->resetDownloadStartTime(); - const std::vector >& fileEntries = + const std::vector >& fileEntries = getRequestGroup()->getDownloadContext()->getFileEntries(); if(isUriSuppliedForRequsetFileEntry (fileEntries.begin(), fileEntries.end())) { @@ -75,7 +75,7 @@ void BtFileAllocationEntry::prepareForNextAction } } else { #ifdef __MINGW32__ - const SharedHandle& diskAdaptor = + const std::shared_ptr& diskAdaptor = getRequestGroup()->getPieceStorage()->getDiskAdaptor(); if(!diskAdaptor->isReadOnlyEnabled()) { // On Windows, if aria2 opens files with GENERIC_WRITE access -- cgit