-readability-magic-numbers,
-readability-misleading-indentation,
-readability-named-parameter,
- -readability-non-const-parameter,
-readability-qualified-auto,
-readability-simplify-boolean-expr,
-readability-suspicious-call-argument,
return FALSE;
}
-static gboolean cache_sim_read_comment(FILE *f, gchar *buf, gint s, CacheData *cd)
+static gboolean cache_sim_read_comment(FILE *f, const gchar *buf, gint s, CacheData *cd)
{
if (!f || !buf || !cd) return FALSE;
}
#pragma GCC diagnostic pop
-void cache_sim_data_set_md5sum(CacheData *cd, guchar digest[16])
+void cache_sim_data_set_md5sum(CacheData *cd, const guchar digest[16])
{
gint i;
CacheData *cache_sim_data_load(const gchar *path);
void cache_sim_data_set_dimensions(CacheData *cd, gint w, gint h);
-void cache_sim_data_set_md5sum(CacheData *cd, guchar digest[16]);
+void cache_sim_data_set_md5sum(CacheData *cd, const guchar digest[16]);
void cache_sim_data_set_similarity(CacheData *cd, ImageSimilarityData *sd);
gint cache_sim_data_filled(ImageSimilarityData *sd);
/*raw support */
guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width, gint requested_height);
-void exif_free_preview(guchar *buf);
+void exif_free_preview(const guchar *buf);
gchar *metadata_file_info(FileData *fd, const gchar *key, MetadataFormat format);
gchar *metadata_lua_info(FileData *fd, const gchar *key, MetadataFormat format);
}
}
-void exif_free_preview(guchar *buf)
+void exif_free_preview(const guchar *buf)
{
delete[] static_cast<Exiv2::byte*>(buf);
}
static GList *libraw_unmap_list = nullptr;
-void libraw_free_preview(guchar *buf)
+void libraw_free_preview(const guchar *buf)
{
GList *work = libraw_unmap_list;
#define IMAGE_LOAD_RAW_H
guchar *libraw_get_preview(ImageLoader *il, guint *data_len);
-void libraw_free_preview(guchar *buf);
+void libraw_free_preview(const guchar *buf);
#endif
static guint16
-read_uint16 (guchar* buf)
+read_uint16 (const guchar* buf)
{
return (buf[0] << 8) | buf[1];
}
static guint32
-read_uint32 (guchar* buf)
+read_uint32 (const guchar* buf)
{
return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
}
layout_util_status_update_write(lw);
}
-static GtkWidget *layout_status_label(gchar *text, GtkWidget *box, gboolean start, gint size, gboolean expand)
+static GtkWidget *layout_status_label(const gchar *text, GtkWidget *box, gboolean start, gint size, gboolean expand)
{
GtkWidget *label;
GtkWidget *frame;
* and assumes a NULL terminated string.
*/
-gchar *md5_digest_to_text(guchar digest[16])
+gchar *md5_digest_to_text(const guchar digest[16])
{
static gchar hex_digits[] = "0123456789abcdef";
gchar *result;
* @headerfile md5_digest_to_text
* convert digest to a NULL terminated text string, in ascii encoding
*/
-gchar *md5_digest_to_text(guchar digest[16]);
+gchar *md5_digest_to_text(const guchar digest[16]);
/**
* @headerfile md5_digest_from_text