Remove std::unique_ptr from ByteArraySink

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2026-02-18 09:07:03 +00:00
parent 316121ba8f
commit 1ac986b7c8
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
5 changed files with 17 additions and 23 deletions

View file

@ -56,8 +56,9 @@ std::pair<Upload::Ptr, QByteArray*> Upload::makeByteArray(QUrl url, QByteArray m
auto up = makeShared<Upload>();
up->m_url = std::move(url);
auto response = new QByteArray();
up->m_sink = std::make_unique<ByteArraySink>(std::unique_ptr<QByteArray>{ response });
auto sink = std::make_unique<ByteArraySink>();
QByteArray* response = sink->output();
up->m_sink = std::move(sink);
up->m_post_data = std::move(m_post_data);
return { up, response };