Skip to content

Commit

Permalink
fix compilation with EXIV2_DEBUG_MESSAGES
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and piponazo committed May 14, 2021
1 parent 44eb561 commit bf290e8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/cr2image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace Exiv2 {
};
for (auto&& filteredIfd : filteredIfds) {
#ifdef EXIV2_DEBUG_MESSAGES
std::cerr << "Warning: Exif IFD " << filteredIfds[i] << " not encoded\n";
std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
#endif
ed.erase(std::remove_if(ed.begin(), ed.end(), FindExifdatum(filteredIfd)), ed.end());
}
Expand Down
2 changes: 1 addition & 1 deletion src/exif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ namespace Exiv2 {
};
for (auto&& filteredIfd : filteredIfds) {
#ifdef EXIV2_DEBUG_MESSAGES
std::cerr << "Warning: Exif IFD " << filteredIfds[i] << " not encoded\n";
std::cerr << "Warning: Exif IFD " << filteredIfds << " not encoded\n";
#endif
eraseIfd(ed, filteredIfd);
}
Expand Down
2 changes: 1 addition & 1 deletion src/orfimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ namespace Exiv2 {
};
for (auto&& filteredIfd : filteredIfds) {
#ifdef EXIV2_DEBUG_MESSAGES
std::cerr << "Warning: Exif IFD " << filteredIfds[i] << " not encoded\n";
std::cerr << "Warning: Exif IFD " << filteredIfds << " not encoded\n";
#endif
ed.erase(std::remove_if(ed.begin(), ed.end(), FindExifdatum(filteredIfd)), ed.end());
}
Expand Down
4 changes: 2 additions & 2 deletions src/rw2image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ namespace Exiv2 {
auto dup = prevData.findKey(ExifKey(pos.key()));
if (dup != prevData.end()) {
#ifdef EXIV2_DEBUG_MESSAGES
std::cerr << "Filtering duplicate tag " << pos->key()
<< " (values '" << pos->value()
std::cerr << "Filtering duplicate tag " << pos.key()
<< " (values '" << pos.value()
<< "' and '" << dup->value() << "')\n";
#endif
prevData.erase(dup);
Expand Down
2 changes: 1 addition & 1 deletion src/tiffimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ namespace Exiv2 {
};
for (auto&& filteredIfd : filteredIfds) {
#ifdef EXIV2_DEBUG_MESSAGES
std::cerr << "Warning: Exif IFD " << filteredIfds[i] << " not encoded\n";
std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
#endif
ed.erase(std::remove_if(ed.begin(), ed.end(), FindExifdatum(filteredIfd)), ed.end());
}
Expand Down
2 changes: 1 addition & 1 deletion src/xmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ namespace Exiv2 {
// Register custom namespaces with XMP-SDK
for (auto&& i : XmpProperties::nsRegistry_) {
#ifdef EXIV2_DEBUG_MESSAGES
std::cerr << "Registering " << i->second.prefix_ << " : " << i->first << "\n";
std::cerr << "Registering " << i.second.prefix_ << " : " << i.first << "\n";
#endif
registerNs(i.first, i.second.prefix_);
}
Expand Down

0 comments on commit bf290e8

Please sign in to comment.