summaryrefslogtreecommitdiffhomepage
path: root/cv/translation-calibrator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cv/translation-calibrator.cpp')
-rw-r--r--cv/translation-calibrator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cv/translation-calibrator.cpp b/cv/translation-calibrator.cpp
index 1eb9d1fa..d08e0c43 100644
--- a/cv/translation-calibrator.cpp
+++ b/cv/translation-calibrator.cpp
@@ -62,8 +62,8 @@ std::tuple<cv::Vec3f, cv::Vec3i> TranslationCalibrator::get_estimate()
for (unsigned k = 0; k < 3; k++)
{
const vec& data = *in[k];
- for (unsigned i = 0; i < data.size(); i++)
- if (data[i])
+ for (unsigned i : data)
+ if (i)
values[k]++;
}