mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-07 05:46:58 +03:00
Make response const
I don't think the segfault fix was ideal :P Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
2e9403a324
commit
709736d3f9
2 changed files with 3 additions and 5 deletions
|
|
@ -56,9 +56,7 @@ void ModrinthPackExportTask::executeTask()
|
|||
bool ModrinthPackExportTask::abort()
|
||||
{
|
||||
if (task != nullptr) {
|
||||
if (!task->abort())
|
||||
return false;
|
||||
|
||||
task->abort();
|
||||
task = nullptr;
|
||||
emitAborted();
|
||||
return true;
|
||||
|
|
@ -158,7 +156,7 @@ void ModrinthPackExportTask::makeApiRequest()
|
|||
}
|
||||
}
|
||||
|
||||
void ModrinthPackExportTask::parseApiResponse(QByteArray* response)
|
||||
void ModrinthPackExportTask::parseApiResponse(const QByteArray* response)
|
||||
{
|
||||
task = nullptr;
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class ModrinthPackExportTask : public Task {
|
|||
void collectFiles();
|
||||
void collectHashes();
|
||||
void makeApiRequest();
|
||||
void parseApiResponse(QByteArray* response);
|
||||
void parseApiResponse(const QByteArray* response);
|
||||
void buildZip();
|
||||
|
||||
QByteArray generateIndex();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue