summaryrefslogtreecommitdiffstats
path: root/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h b/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
index be8aa89a..cbea7971 100644
--- a/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
+++ b/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
@@ -126,16 +126,16 @@ public:
geom->allocate(vx.size(), ix.size());
if (geom->indexType() == QSGGeometry::UnsignedShortType) {
quint16 *its = geom->indexDataAsUShort();
- for (int i = 0; i < ix.size(); ++i)
+ for (qsizetype i = 0; i < ix.size(); ++i)
its[i] = ix[i];
} else if (geom->indexType() == QSGGeometry::UnsignedIntType) {
quint32 *its = geom->indexDataAsUInt();
- for (int i = 0; i < ix.size(); ++i)
+ for (qsizetype i = 0; i < ix.size(); ++i)
its[i] = ix[i];
}
QSGGeometry::Point2D *pts = geom->vertexDataAsPoint2D();
- for (int i = 0; i < vx.size(); ++i)
+ for (qsizetype i = 0; i < vx.size(); ++i)
pts[i].set(vx[i].x, vx[i].y);
}