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
@@ -233,8 +233,8 @@ void print(const std::string& file)
image->readMetadata();
Exiv2::ExifData &ed = image->exifData();
Exiv2::ExifData::const_iterator end = ed.end();
for (Exiv2::ExifData::const_iterator i = ed.begin(); i != end; ++i) {
auto end = ed.end();
for (auto i = ed.begin(); i != end; ++i) {
std::cout << std::setw(45) << std::setfill(' ') << std::left
<< i->key() << " "
<< "0x" << std::setw(4) << std::setfill('0') << std::right