Added
Link Here
|
1 |
--- lib/kpaexif/Database.cpp.orig 2023-03-25 09:46:12 UTC |
2 |
+++ lib/kpaexif/Database.cpp |
3 |
@@ -320,7 +320,7 @@ bool Exif::Database::add(const DB::FileName &fileName) |
4 |
return false; |
5 |
|
6 |
try { |
7 |
- Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(fileName.absolute().toLocal8Bit().data()); |
8 |
+ Exiv2::Image::UniquePtr image { Exiv2::ImageFactory::open(fileName.absolute().toLocal8Bit().data()) }; |
9 |
Q_ASSERT(image.get() != nullptr); |
10 |
image->readMetadata(); |
11 |
Exiv2::ExifData &exifData = image->exifData(); |
12 |
@@ -341,7 +341,7 @@ bool Exif::Database::add(const DB::FileNameList &list) |
13 |
|
14 |
for (const DB::FileName &fileName : list) { |
15 |
try { |
16 |
- Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(fileName.absolute().toLocal8Bit().data()); |
17 |
+ Exiv2::Image::UniquePtr image { Exiv2::ImageFactory::open(fileName.absolute().toLocal8Bit().data()) }; |
18 |
Q_ASSERT(image.get() != nullptr); |
19 |
image->readMetadata(); |
20 |
map << DBExifInfo(fileName, image->exifData()); |