Store action data as QString. (#3073)

Fixes compilation error in newer QT versions, and also prevents risk of potential memory issues.
This commit is contained in:
karliss 2023-01-10 03:45:47 +02:00 committed by GitHub
parent 34018519de
commit a82d4402f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,7 +524,7 @@ void DisassemblyContextMenu::aboutToShowSlot()
continue;
}
structureOffsetMenu->addAction("[" + memBaseReg + " + " + ty->path + "]")
->setData(ty->path);
->setData(QString(ty->path));
}
rz_list_free(typeoffs);
}