mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Use an owning QByteArray in ByteArraySink (#5050)
This commit is contained in:
commit
b114d043f6
70 changed files with 404 additions and 403 deletions
|
|
@ -39,9 +39,8 @@ void ManifestDownloadTask::executeTask()
|
|||
{
|
||||
setStatus(tr("Downloading Java"));
|
||||
auto download = makeShared<NetJob>(QString("JRE::DownloadJava"), APPLICATION->network());
|
||||
auto files = std::make_shared<QByteArray>();
|
||||
|
||||
auto action = Net::Download::makeByteArray(m_url, files.get());
|
||||
auto [action, files] = Net::Download::makeByteArray(m_url);
|
||||
if (!m_checksum_hash.isEmpty() && !m_checksum_type.isEmpty()) {
|
||||
auto hashType = QCryptographicHash::Algorithm::Sha1;
|
||||
if (m_checksum_type == "sha256") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue