fix: makeShared for QByteArray
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
6d5a2ceefe
commit
a83e5be8f2
@ -1078,7 +1078,7 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||||||
extra_info.insert("pack_id", addonId);
|
extra_info.insert("pack_id", addonId);
|
||||||
extra_info.insert("pack_version_id", fileId);
|
extra_info.insert("pack_version_id", fileId);
|
||||||
|
|
||||||
auto array = new QByteArray();
|
auto array = std::make_shared<QByteArray>();
|
||||||
|
|
||||||
auto api = FlameAPI();
|
auto api = FlameAPI();
|
||||||
auto job = api.getFile(addonId, fileId, array);
|
auto job = api.getFile(addonId, fileId, array);
|
||||||
|
@ -134,7 +134,7 @@ void ImportPage::updateState()
|
|||||||
QUrlQuery query(url);
|
QUrlQuery query(url);
|
||||||
auto addonId = query.allQueryItemValues("addonId")[0];
|
auto addonId = query.allQueryItemValues("addonId")[0];
|
||||||
auto fileId = query.allQueryItemValues("fileId")[0];
|
auto fileId = query.allQueryItemValues("fileId")[0];
|
||||||
auto array = new QByteArray();
|
auto array = std::make_shared<QByteArray>();
|
||||||
|
|
||||||
auto api = FlameAPI();
|
auto api = FlameAPI();
|
||||||
auto job = api.getFile(addonId, fileId, array);
|
auto job = api.getFile(addonId, fileId, array);
|
||||||
|
Loading…
Reference in New Issue
Block a user