From 5ce5044dcea8b136265493841256f1c35c7ece61 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Tue, 9 Nov 2021 21:36:17 +0000 Subject: [PATCH] simgear/scene/tgdb/VPBTechnique.*: fix a clang sign-comparison warning. Also removed unnecessary initialisation of _fileName to "". --- simgear/scene/tgdb/VPBTechnique.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simgear/scene/tgdb/VPBTechnique.cxx b/simgear/scene/tgdb/VPBTechnique.cxx index 00e35d13..d5fcc2be 100644 --- a/simgear/scene/tgdb/VPBTechnique.cxx +++ b/simgear/scene/tgdb/VPBTechnique.cxx @@ -56,8 +56,7 @@ using namespace osgTerrain; using namespace simgear; -VPBTechnique::VPBTechnique(): - _fileName("") +VPBTechnique::VPBTechnique() { setFilterBias(0); setFilterWidth(0.1); @@ -1532,7 +1531,7 @@ void VPBTechnique::applyMaterials(BufferData& buffer, Locator* masterLocator) std::vector> scan_points; - for(auto iter=0; iter!=handlers.size(); iter++) { + for(auto iter=0u; iter!=handlers.size(); iter++) { const double delta_lat = deltas[iter].first; const double delta_lon = deltas[iter].second; const int off_x = ll_O.x() / delta_lon;