1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-22 23:04:23 +02:00

Dummy non-class callback functions are not needed

This commit is contained in:
2020-07-02 23:51:15 +02:00
parent 29a821f8b2
commit 51becc4bf1
3 changed files with 4 additions and 19 deletions

View File

@ -167,11 +167,6 @@ void IMGMap::ll2xy(QList<MapData::Point> &points)
}
}
static void render(RasterTile &tile)
{
tile.render();
}
void IMGMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
{
Q_UNUSED(flags);
@ -224,7 +219,7 @@ void IMGMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
}
}
QFuture<void> future = QtConcurrent::map(tiles, render);
QFuture<void> future = QtConcurrent::map(tiles, &RasterTile::render);
future.waitForFinished();
for (int i = 0; i < tiles.size(); i++) {