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:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user