Added
Link Here
|
0 |
- |
1 |
--- Tokenize/filters/Exiv2ImageFilter.cc.orig 2022-02-22 20:31:11 UTC |
|
|
2 |
+++ Tokenize/filters/Exiv2ImageFilter.cc |
3 |
@@ -236,7 +236,7 @@ bool Exiv2ImageFilter::next_document(void) |
4 |
|
5 |
try |
6 |
{ |
7 |
- Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(m_filePath); |
8 |
+ Exiv2::Image::UniquePtr image { Exiv2::ImageFactory::open(m_filePath) }; |
9 |
if (image.get() == NULL) |
10 |
{ |
11 |
clog << m_filePath.c_str() << " is not an image" << endl; |
12 |
@@ -388,7 +388,7 @@ bool Exiv2ImageFilter::next_document(void) |
13 |
} |
14 |
} |
15 |
} |
16 |
- catch (Exiv2::AnyError &e) |
17 |
+ catch (Exiv2::Error &e) |
18 |
{ |
19 |
clog << "Caught exiv2 exception: " << e << endl; |
20 |
foundData = false; |