OSDN Git Service

gwenview: fix build against recent Exiv2 versions
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 15 May 2019 00:15:03 +0000 (00:15 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 15 May 2019 00:15:03 +0000 (00:15 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
gwenview/lib/CMakeLists.txt
gwenview/lib/exiv2imageloader.cpp
gwenview/lib/exiv2imageloader.h
gwenview/lib/imagemetainfomodel.cpp

index e09b5df..e92b130 100644 (file)
@@ -10,10 +10,6 @@ include_directories(
     ${JPEG_INCLUDE_DIR}
     ${PNG_INCLUDE_DIRS}
 )
-add_definitions(
-    ${EXIV2_DEFINITIONS}
-    ${KDE4_ENABLE_EXCEPTIONS}
-)
 
 set(gwenviewlib_SRCS
     contextmanager.cpp
index 37ac9fa..9b12db5 100644 (file)
@@ -28,8 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 // KDE
 
 // Exiv2
-#include <exiv2/error.hpp>
-#include <exiv2/types.hpp>
+#include <exiv2/exiv2.hpp>
 
 // Local
 
index 2f1ced0..da75f8b 100644 (file)
@@ -29,12 +29,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
 // Exiv2
 #include <string.h>
-#include <exiv2/image.hpp>
+#include <exiv2/exiv2.hpp>
 
 // Local
 
-class QByteArray;
-class QString;
+#include <QByteArray>
+#include <QString>
 
 namespace Gwenview
 {
index caf6855..bd30eb0 100644 (file)
@@ -30,9 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #include <KLocale>
 
 // Exiv2
-#include <exiv2/exif.hpp>
-#include <exiv2/image.hpp>
-#include <exiv2/iptc.hpp>
+#include <exiv2/exiv2.hpp>
 
 // Local