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
@ -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…
Reference in New Issue
Block a user