From ec3c4df394cc3ec4fd744091786c6da71681aa25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABlle=20USSEGLIO?= <gaelle.usseglio@cnes.fr> Date: Mon, 10 Dec 2018 10:01:23 +0000 Subject: [PATCH] WRG : Code review (part 3) --- .../OssimPlugins/src/ossim/ossimSarSensorModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSarSensorModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSarSensorModel.cpp index b46d3499f8..3e46bd45e1 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSarSensorModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSarSensorModel.cpp @@ -1633,11 +1633,11 @@ ossimSarSensorModel::burstExtraction(const unsigned int burst_index, std::vector<GCPRecordType> oneBurstGCPs; - + // Now move GCPs - for(std::vector<GCPRecordType>::iterator gcpIt = theGCPRecords.begin(); gcpIt!=theGCPRecords.end();++gcpIt) + for (auto const& token : theGCPRecords) { - GCPRecordType currentGCP = *gcpIt; + GCPRecordType currentGCP = token; unsigned long gcpLine = std::floor(currentGCP.imPt.y+0.5); unsigned long gcpSample = std::floor(currentGCP.imPt.x+0.5); -- GitLab