mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
Use nullptr for std::shared_ptr and unique_ptr default parameter
This commit is contained in:
parent
5ba7150333
commit
b6d84c0160
6 changed files with 8 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue