Drop wrapper around lambda

This commit is contained in:
Lukas Brübach 2026-09-07 09:24:47 +02:00
parent d3487c031e
commit 620fc0db08

View file

@ -48,10 +48,12 @@ static CardSet::Priority getSetPriority(const QString &setType, const QString &s
bool OracleImporter::readSetsFromByteArray(QByteArray data)
{
const RawJson::ScanProgressCallback progress =
progressReporting ? RawJson::ScanProgressCallback([this](qsizetype bytesRead, qsizetype totalBytes) {
emit dataReadProgress(static_cast<int>(bytesRead), static_cast<int>(totalBytes));
})
: RawJson::ScanProgressCallback();
progressReporting
? [this](
qsizetype bytesRead,
qsizetype
totalBytes) { emit dataReadProgress(static_cast<int>(bytesRead), static_cast<int>(totalBytes)); }
: RawJson::ScanProgressCallback{};
RawJson::ScanError error;
const QList<RawJson::SetRange> ranges = RawJson::scanSetRanges(data, &error, progress);