[=] in lambda again ( removed references )

This commit is contained in:
Filip Bucek 2019-12-05 10:18:32 +01:00
parent e60ba77d45
commit 2d77736648

View File

@ -62,7 +62,7 @@ bool ColnodAPI::downloadData(const qint64 &time)
auto data = std::make_shared<Data>(); auto data = std::make_shared<Data>();
int dataCount = 0; int dataCount = 0;
auto checkData = [&dataCount, &data, this]() { auto checkData = [=]() {
qDebug() << "check data" << dataCount; qDebug() << "check data" << dataCount;
// FIX: Problem with ASSERT: "dataCount < 5" -> datacount sometime -> 32677 ( bad memory allocation ) // FIX: Problem with ASSERT: "dataCount < 5" -> datacount sometime -> 32677 ( bad memory allocation )
// Not possible to pinpoint memory problem. // Not possible to pinpoint memory problem.