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:
TheKodeToad 2023-04-17 13:52:51 +01:00
parent 2e9403a324
commit 709736d3f9
2 changed files with 3 additions and 5 deletions

View File

@ -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;

View File

@ -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();