summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qgeomapitemgeometry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qgeomapitemgeometry.cpp')
-rw-r--r--src/location/declarativemaps/qgeomapitemgeometry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/location/declarativemaps/qgeomapitemgeometry.cpp b/src/location/declarativemaps/qgeomapitemgeometry.cpp
index 6639f058..60ff4eec 100644
--- a/src/location/declarativemaps/qgeomapitemgeometry.cpp
+++ b/src/location/declarativemaps/qgeomapitemgeometry.cpp
@@ -62,7 +62,7 @@ QGeoMapItemGeometry::~QGeoMapItemGeometry()
*/
void QGeoMapItemGeometry::translate(const QPointF &offset)
{
- for (int i = 0; i < screenVertices_.size(); ++i)
+ for (qsizetype i = 0; i < screenVertices_.size(); ++i)
screenVertices_[i] += offset;
firstPointOffset_ += offset;
@@ -82,11 +82,11 @@ void QGeoMapItemGeometry::allocateAndFill(QSGGeometry *geom) const
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];
}
} else {
@@ -94,7 +94,7 @@ void QGeoMapItemGeometry::allocateAndFill(QSGGeometry *geom) const
}
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());
}