From c220ddefb1b6b11b54f7598f0d44dd0723325ed4 Mon Sep 17 00:00:00 2001 From: Pieter Krul Date: Sun, 12 May 2019 03:23:44 +0200 Subject: [PATCH] Fix build against exiv2-0.27.1+ --- src/exiv2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exiv2.cc b/src/exiv2.cc index 2992740c..2b31708c 100644 --- a/src/exiv2.cc +++ b/src/exiv2.cc @@ -364,7 +364,7 @@ public: Exiv2::Image *image = imageData_->image(); #ifdef HAVE_EXIV2_ERROR_CODE - if (!image) throw Exiv2::Error(Exiv2::ErrorCode::kerInputDataReadFailed); + if (!image) throw Exiv2::Error(Exiv2::kerInputDataReadFailed); #else if (!image) throw Exiv2::Error(21); #endif @@ -388,7 +388,7 @@ public: sidecar->writeMetadata(); #else #ifdef HAVE_EXIV2_ERROR_CODE - throw Exiv2::Error(Exiv2::ErrorCode::kerNotAnImage, "xmp"); + throw Exiv2::Error(Exiv2::kerNotAnImage, "xmp"); #else throw Exiv2::Error(3, "xmp"); #endif -- 2.20.1