Fix build against exiv2-0.27.1+
authorPieter Krul <github@krul.cc>
Sun, 12 May 2019 01:23:44 +0000 (03:23 +0200)
committerPieter Krul <github@krul.cc>
Sun, 2 Jun 2019 16:06:40 +0000 (18:06 +0200)
src/exiv2.cc

index 2992740..2b31708 100644 (file)
@@ -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