mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Remove std::unique_ptr from ByteArraySink
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
316121ba8f
commit
1ac986b7c8
5 changed files with 17 additions and 23 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue