@@ -3726,8 +3726,7 @@ inline bool Client::process_and_close_socket(
3726
3726
inline bool Client::is_ssl () const { return false ; }
3727
3727
3728
3728
inline std::shared_ptr<Response> Client::Get (const char *path) {
3729
- Progress dummy;
3730
- return Get (path, Headers (), dummy);
3729
+ return Get (path, Headers (), Progress ());
3731
3730
}
3732
3731
3733
3732
inline std::shared_ptr<Response> Client::Get (const char *path,
@@ -3737,8 +3736,7 @@ inline std::shared_ptr<Response> Client::Get(const char *path,
3737
3736
3738
3737
inline std::shared_ptr<Response> Client::Get (const char *path,
3739
3738
const Headers &headers) {
3740
- Progress dummy;
3741
- return Get (path, headers, dummy);
3739
+ return Get (path, headers, Progress ());
3742
3740
}
3743
3741
3744
3742
inline std::shared_ptr<Response>
@@ -3755,37 +3753,33 @@ Client::Get(const char *path, const Headers &headers, Progress progress) {
3755
3753
3756
3754
inline std::shared_ptr<Response> Client::Get (const char *path,
3757
3755
ContentReceiver content_receiver) {
3758
- Progress dummy;
3759
- return Get (path, Headers (), nullptr , std::move (content_receiver), dummy);
3756
+ return Get (path, Headers (), nullptr , std::move (content_receiver), Progress ());
3760
3757
}
3761
3758
3762
3759
inline std::shared_ptr<Response> Client::Get (const char *path,
3763
3760
ContentReceiver content_receiver,
3764
3761
Progress progress) {
3765
- return Get (path, Headers (), nullptr , std::move (content_receiver), progress);
3762
+ return Get (path, Headers (), nullptr , std::move (content_receiver), std::move ( progress) );
3766
3763
}
3767
3764
3768
3765
inline std::shared_ptr<Response> Client::Get (const char *path,
3769
3766
const Headers &headers,
3770
3767
ContentReceiver content_receiver) {
3771
- Progress dummy;
3772
- return Get (path, headers, nullptr , std::move (content_receiver), dummy);
3768
+ return Get (path, headers, nullptr , std::move (content_receiver), Progress ());
3773
3769
}
3774
3770
3775
3771
inline std::shared_ptr<Response> Client::Get (const char *path,
3776
3772
const Headers &headers,
3777
3773
ContentReceiver content_receiver,
3778
3774
Progress progress) {
3779
- return Get (path, headers, nullptr , std::move (content_receiver), progress);
3775
+ return Get (path, headers, nullptr , std::move (content_receiver), std::move ( progress) );
3780
3776
}
3781
3777
3782
3778
inline std::shared_ptr<Response> Client::Get (const char *path,
3783
3779
const Headers &headers,
3784
3780
ResponseHandler response_handler,
3785
3781
ContentReceiver content_receiver) {
3786
- Progress dummy;
3787
- return Get (path, headers, std::move (response_handler), content_receiver,
3788
- dummy);
3782
+ return Get (path, headers, std::move (response_handler), content_receiver, Progress ());
3789
3783
}
3790
3784
3791
3785
inline std::shared_ptr<Response> Client::Get (const char *path,
0 commit comments