Replace many of the iterators types with auto

This commit is contained in:
Luis Díaz Más
2021-04-18 20:38:06 +02:00
parent 75e4bd9059
commit f85f7f717a
32 changed files with 166 additions and 173 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ try {
// Alternatively, we can use findKey()
key = Exiv2::ExifKey("Exif.Image.PrimaryChromaticities");
Exiv2::ExifData::iterator pos = exifData.findKey(key);
auto pos = exifData.findKey(key);
if (pos == exifData.end()) throw Exiv2::Error(Exiv2::kerErrorMessage, "Key not found");
// Get a pointer to a copy of the value
v = pos->getValue();