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
+2 -2
View File
@@ -179,7 +179,7 @@ void testCase(const std::string& file1,
Exiv2::ExifData &ed1 = image1->exifData();
std::cerr << "---> Modifying Exif data\n";
Exiv2::ExifData::iterator pos = ed1.findKey(ek);
auto pos = ed1.findKey(ek);
if (pos == ed1.end()) {
throw Error(kerErrorMessage, "Metadatum with key = " + ek.key() + " not found");
}
@@ -209,7 +209,7 @@ void testCase(const std::string& file1,
void exifPrint(const ExifData& exifData)
{
ExifData::const_iterator i = exifData.begin();
auto i = exifData.begin();
for (; i != exifData.end(); ++i) {
std::cout << std::setw(44) << std::setfill(' ') << std::left
<< i->key() << " "