Skip to content

Commit f441cd2

Browse files
authored
Use std::move for content_provider in adapter (#2297)
1 parent c3613c6 commit f441cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6835,7 +6835,7 @@ class ContentProviderAdapter {
68356835
public:
68366836
explicit ContentProviderAdapter(
68376837
ContentProviderWithoutLength &&content_provider)
6838-
: content_provider_(content_provider) {}
6838+
: content_provider_(std::move(content_provider)) {}
68396839

68406840
bool operator()(size_t offset, size_t, DataSink &sink) {
68416841
return content_provider_(offset, sink);

0 commit comments

Comments
 (0)