Use an owning QByteArray in ByteArraySink (#5050)

This commit is contained in:
Alexandru Ionut Tripon 2026-03-02 16:53:22 +00:00 committed by GitHub
commit b114d043f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
70 changed files with 404 additions and 403 deletions

View file

@ -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") {