mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 10:05:10 -07:00
Drop wrapper around lambda
This commit is contained in:
parent
d3487c031e
commit
620fc0db08
1 changed files with 6 additions and 4 deletions
|
|
@ -48,10 +48,12 @@ static CardSet::Priority getSetPriority(const QString &setType, const QString &s
|
||||||
bool OracleImporter::readSetsFromByteArray(QByteArray data)
|
bool OracleImporter::readSetsFromByteArray(QByteArray data)
|
||||||
{
|
{
|
||||||
const RawJson::ScanProgressCallback progress =
|
const RawJson::ScanProgressCallback progress =
|
||||||
progressReporting ? RawJson::ScanProgressCallback([this](qsizetype bytesRead, qsizetype totalBytes) {
|
progressReporting
|
||||||
emit dataReadProgress(static_cast<int>(bytesRead), static_cast<int>(totalBytes));
|
? [this](
|
||||||
})
|
qsizetype bytesRead,
|
||||||
: RawJson::ScanProgressCallback();
|
qsizetype
|
||||||
|
totalBytes) { emit dataReadProgress(static_cast<int>(bytesRead), static_cast<int>(totalBytes)); }
|
||||||
|
: RawJson::ScanProgressCallback{};
|
||||||
|
|
||||||
RawJson::ScanError error;
|
RawJson::ScanError error;
|
||||||
const QList<RawJson::SetRange> ranges = RawJson::scanSetRanges(data, &error, progress);
|
const QList<RawJson::SetRange> ranges = RawJson::scanSetRanges(data, &error, progress);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue