Sort headers using clang-tidy
[geeqie.git] / src / exiv2.cc
index b41db97..6b9194d 100644 (file)
 #define HAVE_EXIV2_ERROR_CODE
 #endif
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
 #include <fcntl.h>
 #include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
 
 #if EXIV2_TEST_VERSION(0,27,0)
 #define EXV_PACKAGE "exiv2"
 
 #include <glib.h>
 
-#include "main.h"
 #include "exif.h"
 
+#include "debug.h"
 #include "filedata.h"
 #include "filefilter.h"
 #include "misc.h"
+#include "options.h"
 #include "ui-fileops.h"
 
 #if EXIV2_TEST_VERSION(0,28,0)
@@ -1237,7 +1238,7 @@ guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width,
 
 void exif_free_preview(const guchar *buf)
 {
-       delete[] static_cast<Exiv2::byte*>(buf);
+delete[] static_cast<const Exiv2::byte*>(buf);
 }
 #endif
 
@@ -1332,7 +1333,7 @@ guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width,
 
 }
 
-void exif_free_preview(guchar *buf)
+void exif_free_preview(const guchar *buf)
 {
        GList *work = exif_unmap_list;