Skip to content

Commit

Permalink
Use unsigned int in loops to avoid conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gostefan committed Sep 4, 2024
1 parent b8724f5 commit 26502b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/src/citygml/citymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace citygml
it->second.push_back(cityObj);
}

for (int i = 0; i < cityObj->getChildCityObjectsCount(); i++) {
for (unsigned int i = 0; i < cityObj->getChildCityObjectsCount(); i++) {
addToCityObjectsMapRecursive(&cityObj->getChildCityObject(i));
}
}
Expand Down
2 changes: 1 addition & 1 deletion sources/src/citygml/cityobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace citygml {
}

for (std::unique_ptr<ImplicitGeometry>& implictGeom : m_implicitGeometries) {
for (int i = 0; i < implictGeom->getGeometriesCount(); i++) {
for (unsigned int i = 0; i < implictGeom->getGeometriesCount(); i++) {
implictGeom->getGeometry(i).finish(tesselator, optimize, logger);
}
}
Expand Down
2 changes: 1 addition & 1 deletion sources/src/parser/geometryelementparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace citygml {
bool GeometryElementParser::parseElementEndTag(const NodeType::XMLNode&, const std::string&)
{
if (m_orientation == "-") {
for (int i = 0; i < m_model->getPolygonsCount(); i++) {
for (unsigned int i = 0; i < m_model->getPolygonsCount(); i++) {
m_model->getPolygon(i)->setNegNormal(true);
}
}
Expand Down

0 comments on commit 26502b2

Please sign in to comment.