cpp: Replace auto_ptr by unique_ptr

This commit is contained in:
Luis Díaz Más
2021-04-05 16:01:48 +02:00
parent 537cdad99e
commit 0bbaa6eff3
102 changed files with 646 additions and 638 deletions
+2 -2
View File
@@ -170,7 +170,7 @@ void testCase(const std::string& file1,
ExifKey ek(key);
//Open first image
Image::AutoPtr image1 = ImageFactory::open(file1);
Image::UniquePtr image1 = ImageFactory::open(file1);
assert(image1.get() != 0);
// Load existing metadata
@@ -186,7 +186,7 @@ void testCase(const std::string& file1,
pos->setValue(value);
// Open second image
Image::AutoPtr image2 = ImageFactory::open(file2);
Image::UniquePtr image2 = ImageFactory::open(file2);
assert(image2.get() != 0);
image2->setExifData(image1->exifData());