Use nullptr for std::shared_ptr and unique_ptr default parameter

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-19 23:50:58 +09:00
parent 5ba7150333
commit b6d84c0160
6 changed files with 8 additions and 10 deletions

View file

@ -86,7 +86,7 @@ namespace aria2 {
namespace {
std::unique_ptr<StreamFilter> getTransferEncodingStreamFilter
(HttpResponse* httpResponse,
std::unique_ptr<StreamFilter> delegate = std::unique_ptr<StreamFilter>{})
std::unique_ptr<StreamFilter> delegate = nullptr)
{
if(httpResponse->isTransferEncodingSpecified()) {
auto filter = httpResponse->getTransferEncodingStreamFilter();
@ -106,7 +106,7 @@ std::unique_ptr<StreamFilter> getTransferEncodingStreamFilter
namespace {
std::unique_ptr<StreamFilter> getContentEncodingStreamFilter
(HttpResponse* httpResponse,
std::unique_ptr<StreamFilter> delegate = std::unique_ptr<StreamFilter>{})
std::unique_ptr<StreamFilter> delegate = nullptr)
{
if(httpResponse->isContentEncodingSpecified()) {
auto filter = httpResponse->getContentEncodingStreamFilter();