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()
|
bool ModrinthPackExportTask::abort()
|
||||||
{
|
{
|
||||||
if (task != nullptr) {
|
if (task != nullptr) {
|
||||||
if (!task->abort())
|
task->abort();
|
||||||
return false;
|
|
||||||
|
|
||||||
task = nullptr;
|
task = nullptr;
|
||||||
emitAborted();
|
emitAborted();
|
||||||
return true;
|
return true;
|
||||||
@ -158,7 +156,7 @@ void ModrinthPackExportTask::makeApiRequest()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModrinthPackExportTask::parseApiResponse(QByteArray* response)
|
void ModrinthPackExportTask::parseApiResponse(const QByteArray* response)
|
||||||
{
|
{
|
||||||
task = nullptr;
|
task = nullptr;
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class ModrinthPackExportTask : public Task {
|
|||||||
void collectFiles();
|
void collectFiles();
|
||||||
void collectHashes();
|
void collectHashes();
|
||||||
void makeApiRequest();
|
void makeApiRequest();
|
||||||
void parseApiResponse(QByteArray* response);
|
void parseApiResponse(const QByteArray* response);
|
||||||
void buildZip();
|
void buildZip();
|
||||||
|
|
||||||
QByteArray generateIndex();
|
QByteArray generateIndex();
|
||||||
|
Loading…
Reference in New Issue
Block a user