Use auto for unique pointers

This commit is contained in:
Luis Díaz Más
2022-03-07 22:21:20 +01:00
parent f156af46f3
commit bbc99ae581
26 changed files with 44 additions and 75 deletions
+1 -3
View File
@@ -103,9 +103,7 @@ try {
// *************************************************************************
// Finally, write the remaining Exif data to the image file
Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(file);
assert(image.get() != 0);
auto image = Exiv2::ImageFactory::open(file);
image->setExifData(exifData);
image->writeMetadata();