mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
39 lines
1.7 KiB
Diff
39 lines
1.7 KiB
Diff
From c2f1635ff9b13cc7e109ab0adf0aab431c6383ba Mon Sep 17 00:00:00 2001
|
|
From: Brandon Boese <brandonboese@protonmail.com>
|
|
Date: Thu, 12 Oct 2023 14:26:12 -0400
|
|
Subject: [PATCH 1/3] Update exiv2 includes
|
|
|
|
---
|
|
.../Extras/plugin/photoeditor/photo-image-provider.cpp | 2 +-
|
|
.../Components/Extras/plugin/photoeditor/photo-metadata.h | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-image-provider.cpp b/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-image-provider.cpp
|
|
index 8687ca0..95d4f9f 100644
|
|
--- a/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-image-provider.cpp
|
|
+++ b/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-image-provider.cpp
|
|
@@ -46,7 +46,7 @@ QImage PhotoImageProvider::requestImage(const QString& id,
|
|
QFileInfo fileInfo(filePath);
|
|
QString original = fileInfo.path() + "/.original/" + fileInfo.fileName();
|
|
if (QFileInfo::exists(original)) {
|
|
- Exiv2::Image::AutoPtr exivImage;
|
|
+ Exiv2::Image::UniquePtr exivImage;
|
|
try {
|
|
exivImage = Exiv2::ImageFactory::open(filePath.toStdString());
|
|
exivImage->readMetadata();
|
|
diff --git a/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-metadata.h b/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-metadata.h
|
|
index a2687b8..97f27ac 100644
|
|
--- a/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-metadata.h
|
|
+++ b/modules/Lomiri/Components/Extras/plugin/photoeditor/photo-metadata.h
|
|
@@ -59,7 +59,7 @@ public:
|
|
private:
|
|
PhotoMetadata(const char* filepath);
|
|
|
|
- Exiv2::Image::AutoPtr m_image;
|
|
+ Exiv2::Image::UniquePtr m_image;
|
|
QSet<QString> m_keysPresent;
|
|
QFileInfo m_fileSourceInfo;
|
|
};
|
|
--
|
|
2.42.0
|
|
|