1
0
mirror of synced 2025-12-17 04:02:14 +03:00

Use std::move for content_provider in adapter (#2297)

This commit is contained in:
Aaron Gokaslan
2025-12-09 22:23:45 -05:00
committed by GitHub
parent c3613c6977
commit f441cd2a44

View File

@@ -6835,7 +6835,7 @@ class ContentProviderAdapter {
public:
explicit ContentProviderAdapter(
ContentProviderWithoutLength &&content_provider)
: content_provider_(content_provider) {}
: content_provider_(std::move(content_provider)) {}
bool operator()(size_t offset, size_t, DataSink &sink) {
return content_provider_(offset, sink);