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
|
|
@ -70,8 +70,9 @@ auto Download::makeByteArray(QUrl url, Options options) -> std::pair<Download::P
|
|||
dl->setObjectName(QString("BYTES:") + url.toString());
|
||||
dl->m_options = options;
|
||||
|
||||
auto response = new QByteArray();
|
||||
dl->m_sink = std::make_unique<ByteArraySink>(std::unique_ptr<QByteArray>{ response });
|
||||
auto sink = std::make_unique<ByteArraySink>();
|
||||
QByteArray* response = sink->output();
|
||||
dl->m_sink = std::move(sink);
|
||||
|
||||
return { dl, response };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue