clang-tify: remove void
authorRosen Penev <rosenp@gmail.com>
Sun, 11 Jun 2023 11:38:51 +0000 (04:38 -0700)
committerColin Clark <colin.clark@cclark.uk>
Sun, 11 Jun 2023 12:35:41 +0000 (13:35 +0100)
Found with modernize-redundant-void-args

Signed-off-by: Rosen Penev <rosenp@gmail.com>
65 files changed:
src/cache-maint.cc
src/cache-maint.h
src/cache.cc
src/cache.h
src/cellrenderericon.cc
src/cellrenderericon.h
src/collect-io.cc
src/collect-io.h
src/collect.cc
src/collect.h
src/color-man.cc
src/color-man.h
src/debug.cc
src/debug.h
src/desktop-file.cc
src/desktop-file.h
src/dupe.cc
src/dupe.h
src/editors.cc
src/editors.h
src/exif-common.cc
src/exif.h
src/exiv2.cc
src/filedata.cc
src/filefilter.cc
src/filefilter.h
src/fullscreen.cc
src/fullscreen.h
src/histogram.cc
src/histogram.h
src/image-load.cc
src/image-load.h
src/image.cc
src/image.h
src/img-view.cc
src/img-view.h
src/layout-config.cc
src/layout-config.h
src/layout-util.cc
src/layout-util.h
src/layout.cc
src/layout.h
src/main.cc
src/main.h
src/metadata.cc
src/metadata.h
src/misc.cc
src/misc.h
src/pixbuf-renderer.cc
src/pixbuf-renderer.h
src/pixbuf-util.cc
src/pixbuf-util.h
src/preferences.cc
src/remote.cc
src/remote.h
src/similar.cc
src/similar.h
src/trash.cc
src/trash.h
src/ui-fileops.cc
src/ui-fileops.h
src/ui-menu.cc
src/ui-menu.h
src/ui-misc.cc
src/ui-misc.h

index 6326bd0..d504d18 100644 (file)
@@ -1678,7 +1678,7 @@ static void cache_manager_cache_maintenance_load_cb(GtkWidget *widget, gpointer
        cache_manager_cache_maintenance_load_dialog(widget, path);
 }
 
-void cache_manager_show(void)
+void cache_manager_show()
 {
        GenericDialog *gd;
        GtkWidget *group;
index 816d39b..3cf1550 100644 (file)
@@ -25,7 +25,7 @@
 
 void cache_maintain_home(gboolean metadata, gboolean clear, GtkWidget *parent);
 void cache_notify_cb(FileData *fd, NotifyType type, gpointer data);
-void cache_manager_show(void);
+void cache_manager_show();
 
 void cache_maintain_home_remote(gboolean metadata, gboolean clear, GDestroyNotify *func);
 void cache_manager_standard_process_remote(gboolean clear);
index 42ebdff..e922b44 100644 (file)
@@ -57,7 +57,7 @@
  *-------------------------------------------------------------------
  */
 
-CacheData *cache_sim_data_new(void)
+CacheData *cache_sim_data_new()
 {
        CacheData *cd;
 
@@ -714,7 +714,7 @@ gboolean cache_time_valid(const gchar *cache, const gchar *path)
        return ret;
 }
 
-const gchar *get_thumbnails_cache_dir(void)
+const gchar *get_thumbnails_cache_dir()
 {
        static gchar *thumbnails_cache_dir = nullptr;
 
@@ -733,7 +733,7 @@ const gchar *get_thumbnails_cache_dir(void)
        return thumbnails_cache_dir;
 }
 
-const gchar *get_thumbnails_standard_cache_dir(void)
+const gchar *get_thumbnails_standard_cache_dir()
 {
        static gchar *thumbnails_standard_cache_dir = nullptr;
 
@@ -745,7 +745,7 @@ const gchar *get_thumbnails_standard_cache_dir(void)
        return thumbnails_standard_cache_dir;
 }
 
-const gchar *get_metadata_cache_dir(void)
+const gchar *get_metadata_cache_dir()
 {
        static gchar *metadata_cache_dir = nullptr;
 
index bb15231..896c73a 100644 (file)
@@ -63,7 +63,7 @@ struct CacheData
 gboolean cache_time_valid(const gchar *cache, const gchar *path);
 
 
-CacheData *cache_sim_data_new(void);
+CacheData *cache_sim_data_new();
 void cache_sim_data_free(CacheData *cd);
 
 gboolean cache_sim_data_save(CacheData *cd);
@@ -78,9 +78,9 @@ gint cache_sim_data_filled(ImageSimilarityData *sd);
 gchar *cache_get_location(CacheType type, const gchar *source, gint include_name, mode_t *mode);
 gchar *cache_find_location(CacheType type, const gchar *source);
 
-const gchar *get_thumbnails_cache_dir(void);
-const gchar *get_thumbnails_standard_cache_dir(void);
-const gchar *get_metadata_cache_dir(void);
+const gchar *get_thumbnails_cache_dir();
+const gchar *get_thumbnails_standard_cache_dir();
+const gchar *get_metadata_cache_dir();
 
 #endif
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
index c5b97ed..2b05ea0 100644 (file)
@@ -87,7 +87,7 @@ static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };
 static gpointer parent_class;
 
 GType
-gqv_cell_renderer_icon_get_type(void)
+gqv_cell_renderer_icon_get_type()
 {
        static GType cell_icon_type = 0;
 
@@ -540,7 +540,7 @@ gqv_cell_renderer_icon_get_layout(GQvCellRendererIcon *cellicon, GtkWidget *widg
  * Return value: the new cell renderer
  **/
 GtkCellRenderer *
-gqv_cell_renderer_icon_new(void)
+gqv_cell_renderer_icon_new()
 {
        return static_cast<GtkCellRenderer *>(g_object_new(GQV_TYPE_CELL_RENDERER_ICON, nullptr));
 }
index e93abe4..106e0d6 100644 (file)
@@ -65,14 +65,14 @@ struct GQvCellRendererIconClass
        void (*toggled)(GQvCellRendererIcon *cell_renderer, const gchar *path);
 
        /* Padding for future expansion */
-       void (*_gtk_reserved1)(void);
-       void (*_gtk_reserved2)(void);
-       void (*_gtk_reserved3)(void);
-       void (*_gtk_reserved4)(void);
+       void (*_gtk_reserved1)();
+       void (*_gtk_reserved2)();
+       void (*_gtk_reserved3)();
+       void (*_gtk_reserved4)();
 };
 
-GType            gqv_cell_renderer_icon_get_type(void);
-GtkCellRenderer *gqv_cell_renderer_icon_new(void);
+GType            gqv_cell_renderer_icon_get_type();
+GtkCellRenderer *gqv_cell_renderer_icon_new();
 
 #endif /* __GQV_CELL_RENDERER_ICON_H__ */
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
index e2dcc9e..a97ad30 100644 (file)
@@ -729,7 +729,7 @@ static gboolean collect_manager_process_action(CollectManagerEntry *entry, gchar
        return FALSE; /* no change */
 }
 
-static void collect_manager_refresh(void)
+static void collect_manager_refresh()
 {
        GList *list;
        GList *work;
@@ -859,7 +859,7 @@ static gboolean collect_manager_process_entry(CollectManagerEntry *entry)
        return TRUE;
 }
 
-static gboolean collect_manager_process_entry_list(void)
+static gboolean collect_manager_process_entry_list()
 {
        GList *work;
 
@@ -987,7 +987,7 @@ void collect_manager_remove(FileData *fd, const gchar *collection)
        collect_manager_add_action(action);
 }
 
-void collect_manager_flush(void)
+void collect_manager_flush()
 {
        collect_manager_timer_push(TRUE);
 
index b4017de..9a90e2e 100644 (file)
@@ -67,7 +67,7 @@ void collect_manager_remove(FileData *fd, const gchar *collection);
  * @headerfile collect_manager_flush
  * commit pending operations to disk
  */
-void collect_manager_flush(void);
+void collect_manager_flush();
 
 void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data);
 void collect_manager_list(GList **names_exc, GList **names_inc, GList **paths);
index 57f3387..9b5bd2f 100644 (file)
@@ -1276,7 +1276,7 @@ void collection_window_close_by_collection(CollectionData *cd)
  * Also saves window geometry for Collection windows that have
  * no unsaved data
  */
-gboolean collection_window_modified_exists(void)
+gboolean collection_window_modified_exists()
 {
        GList *work;
        gboolean ret;
index 871f0d0..97cd645 100644 (file)
@@ -86,7 +86,7 @@ CollectWindow *collection_window_new(const gchar *path);
 void collection_window_close_by_collection(CollectionData *cd);
 CollectWindow *collection_window_find(CollectionData *cd);
 CollectWindow *collection_window_find_by_path(const gchar *path);
-gboolean collection_window_modified_exists(void);
+gboolean collection_window_modified_exists();
 
 gboolean is_collection(const gchar *param);
 gchar *collection_path(const gchar *param);
index c6d4007..c1b9443 100644 (file)
@@ -833,7 +833,7 @@ void color_man_free(ColorMan *UNUSED(cm))
        /* no op */
 }
 
-void color_man_update(void)
+void color_man_update()
 {
        /* no op */
 }
index ec369a0..ed8beeb 100644 (file)
@@ -65,7 +65,7 @@ ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf,
                                 guchar *screen_data, guint screen_data_len);
 void color_man_free(ColorMan *cm);
 
-void color_man_update(void);
+void color_man_update();
 
 void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
 
index 007be52..d315b2a 100644 (file)
@@ -166,7 +166,7 @@ void log_domain_printf(const gchar *domain, const gchar *format, ...)
 static gint debug_level = DEBUG_LEVEL_MIN;
 
 
-gint get_debug_level(void)
+gint get_debug_level()
 {
        return debug_level;
 }
@@ -208,7 +208,7 @@ static gint timeval_delta(struct timeval *result, struct timeval *x, struct time
        return x->tv_sec < y->tv_sec;
 }
 
-const gchar *get_exec_time(void)
+const gchar *get_exec_time()
 {
        static gchar timestr[30];
        static struct timeval start_tv = {0, 0};
@@ -241,7 +241,7 @@ const gchar *get_exec_time(void)
        return timestr;
 }
 
-void init_exec_time(void)
+void init_exec_time()
 {
        get_exec_time();
 }
@@ -251,7 +251,7 @@ void set_regexp(const gchar *cmd_regexp)
        regexp = g_strdup(cmd_regexp);
 }
 
-gchar *get_regexp(void)
+gchar *get_regexp()
 {
        return g_strdup(regexp);
 }
index e2c6677..5a9dcb3 100644 (file)
@@ -40,13 +40,13 @@ void log_print_backtrace(const gchar *file, const gchar *function_name, gint lin
 #define DEBUG_LEVEL_MAX 4
 
 void set_regexp(const gchar *regexp);
-gchar *get_regexp(void);
-gint get_debug_level(void);
+gchar *get_regexp();
+gint get_debug_level();
 void set_debug_level(gint new_level);
 void debug_level_add(gint delta);
 gint required_debug_level(gint level);
-const gchar *get_exec_time(void);
-void init_exec_time(void);
+const gchar *get_exec_time();
+void init_exec_time();
 
 #define DEBUG_N(n, ...) do \
                                { \
index 256d736..4d853d1 100644 (file)
@@ -525,7 +525,7 @@ static void plugin_disable_set_func(GtkTreeViewColumn *UNUSED(tree_column), GtkC
                }
 }
 
-static void editor_list_window_create(void)
+static void editor_list_window_create()
 {
        GtkWidget *win_vbox;
        GtkWidget *hbox;
@@ -687,7 +687,7 @@ static void editor_list_window_create(void)
  *-----------------------------------------------------------------------------
  */
 
-void show_editor_list_window(void)
+void show_editor_list_window()
 {
        if (editor_list_window)
                {
index cb57efb..d41d5c8 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef DESKTOP_FILE_H
 #define DESKTOP_FILE_H
 
-void show_editor_list_window(void);
+void show_editor_list_window();
 
 #endif
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
index 647df3e..d26bd46 100644 (file)
@@ -272,7 +272,7 @@ static void dupe_window_update_count(DupeWindow *dw, gboolean count_only)
  *
  *
  */
-static guint64 msec_time(void)
+static guint64 msec_time()
 {
        struct timeval tv;
 
index f29bf93..f59b619 100644 (file)
@@ -148,7 +148,7 @@ struct DupeWindow
 };
 
 
-DupeWindow *dupe_window_new(void);
+DupeWindow *dupe_window_new();
 
 void dupe_window_clear(DupeWindow *dw);
 void dupe_window_close(DupeWindow *dw);
index 0503d2d..55af2a8 100644 (file)
@@ -382,13 +382,13 @@ static gboolean editor_remove_desktop_file_cb(gpointer UNUSED(key), gpointer val
        return editor->hidden || editor->ignored;
 }
 
-void editor_table_finish(void)
+void editor_table_finish()
 {
        g_hash_table_foreach_remove(editors, editor_remove_desktop_file_cb, nullptr);
        editors_finished = TRUE;
 }
 
-void editor_table_clear(void)
+void editor_table_clear()
 {
        if (desktop_file_list)
                {
@@ -436,7 +436,7 @@ static GList *editor_add_desktop_dir(GList *list, const gchar *path)
        return list;
 }
 
-GList *editor_get_desktop_files(void)
+GList *editor_get_desktop_files()
 {
        gchar *path;
        gchar *xdg_data_dirs;
@@ -518,7 +518,7 @@ static gint editor_sort(gconstpointer a, gconstpointer b)
        return ret;
 }
 
-GList *editor_list_get(void)
+GList *editor_list_get()
 {
        GList *editors_list = nullptr;
 
index 85519dd..aee1d7e 100644 (file)
@@ -91,12 +91,12 @@ extern GtkListStore *desktop_file_list;
 
 extern GHashTable *editors;
 
-void editor_table_finish(void);
-void editor_table_clear(void);
-GList *editor_get_desktop_files(void);
+void editor_table_finish();
+void editor_table_clear();
+GList *editor_get_desktop_files();
 gboolean editor_read_desktop_file(const gchar *path);
 
-GList *editor_list_get(void);
+GList *editor_list_get();
 
 
 /**
index ac95a85..6d04644 100644 (file)
@@ -1008,7 +1008,7 @@ void exif_release_cb(FileData *fd)
        fd->exif = nullptr;
 }
 
-void exif_init_cache(void)
+void exif_init_cache()
 {
        g_assert(!exif_cache);
        exif_cache = file_cache_new(exif_release_cb, 4);
index 9132921..2f74028 100644 (file)
@@ -99,7 +99,7 @@ struct ExifFormattedText
  *-----------------------------------------------------------------------------
  */
 
-void exif_init(void);
+void exif_init();
 
 ExifData *exif_read(gchar *path, gchar *sidecar_path, GHashTable *modified_xmp);
 
index fa7425c..33b779e 100644 (file)
@@ -443,7 +443,7 @@ public:
 
 
 
-void exif_init(void)
+void exif_init()
 {
 #ifdef EXV_ENABLE_NLS
        bind_textdomain_codeset (EXV_PACKAGE, "UTF-8");
index 8aff93d..c218ee6 100644 (file)
@@ -1251,7 +1251,7 @@ GList *filelist_sort(GList *list, SortType method, gboolean ascend)
  */
 
 
-static GHashTable *file_data_basename_hash_new(void)
+static GHashTable *file_data_basename_hash_new()
 {
        return g_hash_table_new_full(g_str_hash, g_str_equal, g_free, nullptr);
 }
index 510430c..0a613ab 100644 (file)
@@ -70,7 +70,7 @@ static void filter_entry_free(FilterEntry *fe)
        g_free(fe);
 }
 
-GList *filter_get_list(void)
+GList *filter_get_list()
 {
        return filter_list;
 }
@@ -158,7 +158,7 @@ static void filter_add_if_missing(const gchar *key, const gchar *description, co
        filter_add(key, description, extensions, file_class, writable, allow_sidecar, enabled);
 }
 
-void filter_reset(void)
+void filter_reset()
 {
        GList *work;
 
@@ -174,7 +174,7 @@ void filter_reset(void)
        filter_list = nullptr;
 }
 
-void filter_add_defaults(void)
+void filter_add_defaults()
 {
        /* formats supported by custom loaders */
        filter_add_if_missing("dds", "DirectDraw Surface", ".dds", FORMAT_CLASS_IMAGE, FALSE, FALSE, TRUE);
@@ -370,7 +370,7 @@ static gint filter_sort_ext_len_cb(gconstpointer a, gconstpointer b)
 }
 
 
-void filter_rebuild(void)
+void filter_rebuild()
 {
        GList *work;
        guint i;
@@ -571,12 +571,12 @@ void filter_load_file_type(const gchar **attribute_names, const gchar **attribut
  *-----------------------------------------------------------------------------
  */
 
-GList *sidecar_ext_get_list(void)
+GList *sidecar_ext_get_list()
 {
        return sidecar_ext_list;
 }
 
-static void sidecar_ext_free_list(void)
+static void sidecar_ext_free_list()
 {
        GList *work;
 
index ec4b5ac..56dd233 100644 (file)
@@ -37,14 +37,14 @@ struct FilterEntry {
  * @headerfile filter_get_list
  * you can change, but not add or remove entries from the returned list
  */
-GList *filter_get_list(void);
+GList *filter_get_list();
 void filter_remove_entry(FilterEntry *fe);
 
 void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
 void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
-void filter_add_defaults(void);
-void filter_reset(void);
-void filter_rebuild(void);
+void filter_add_defaults();
+void filter_reset();
+void filter_rebuild();
 GList *filter_to_list(const gchar *extensions);
 
 const gchar *registered_extension_from_path(const gchar *name);
@@ -59,8 +59,8 @@ void filter_load_file_type(const gchar **attribute_names, const gchar **attribut
 
 
 void sidecar_ext_parse(const gchar *text);
-gchar *sidecar_ext_to_string(void);
-GList *sidecar_ext_get_list(void);
+gchar *sidecar_ext_to_string();
+GList *sidecar_ext_get_list();
 
 #endif
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
index 552899f..a521f44 100644 (file)
@@ -178,7 +178,7 @@ static void fullscreen_image_complete_cb(ImageWindow *UNUSED(imd), gboolean prel
 #define XSCREENSAVER_BINARY    "xscreensaver-command"
 #define XSCREENSAVER_COMMAND   "xscreensaver-command -deactivate >&- 2>&- &"
 
-static void fullscreen_saver_deactivate(void)
+static void fullscreen_saver_deactivate()
 {
        static gboolean checked = FALSE;
        static gboolean found = FALSE;
@@ -387,7 +387,7 @@ void fullscreen_stop(FullScreenData *fs)
  *----------------------------------------------------------------------------
  */
 
-GList *fullscreen_prefs_list(void)
+GList *fullscreen_prefs_list()
 {
        GList *list = nullptr;
        GdkDisplay *display;
index 55ca94f..57e0599 100644 (file)
@@ -48,7 +48,7 @@ struct ScreenData {
 };
 
 
-GList *fullscreen_prefs_list(void);
+GList *fullscreen_prefs_list();
 void fullscreen_prefs_list_free(GList *list);
 
 ScreenData *fullscreen_prefs_list_find(GList *list, gint screen);
index 12378a2..8d33f54 100644 (file)
@@ -46,7 +46,7 @@ struct _HistMap {
 };
 
 
-Histogram *histogram_new(void)
+Histogram *histogram_new()
 {
        Histogram *histogram;
 
@@ -136,7 +136,7 @@ const gchar *histogram_label(Histogram *histogram)
        return t1;
 }
 
-static HistMap *histmap_new(void)
+static HistMap *histmap_new()
 {
        auto histmap = g_new0(HistMap, 1);
        return histmap;
index 95f02fd..045b0ed 100644 (file)
@@ -31,7 +31,7 @@
 #define HCHAN_DEFAULT HCHAN_RGB
 
 
-Histogram *histogram_new(void);
+Histogram *histogram_new();
 void histogram_free(Histogram *histogram);
 gint histogram_set_channel(Histogram *histogram, gint chan);
 gint histogram_get_channel(Histogram *histogram);
index 2695c93..e559b3d 100644 (file)
@@ -71,7 +71,7 @@ static void image_loader_class_init(ImageLoaderClass *loader_class);
 static void image_loader_finalize(GObject *object);
 static void image_loader_stop(ImageLoader *il);
 
-GType image_loader_get_type(void)
+GType image_loader_get_type()
 {
        static GType type = 0;
        if (type == 0)
@@ -1200,14 +1200,14 @@ static GMutex *image_loader_prio_mutex = nullptr;
 static gint image_loader_prio_num = 0;
 
 
-static void image_loader_thread_enter_high(void)
+static void image_loader_thread_enter_high()
 {
        g_mutex_lock(image_loader_prio_mutex);
        image_loader_prio_num++;
        g_mutex_unlock(image_loader_prio_mutex);
 }
 
-static void image_loader_thread_leave_high(void)
+static void image_loader_thread_leave_high()
 {
        g_mutex_lock(image_loader_prio_mutex);
        image_loader_prio_num--;
@@ -1215,7 +1215,7 @@ static void image_loader_thread_leave_high(void)
        g_mutex_unlock(image_loader_prio_mutex);
 }
 
-static void image_loader_thread_wait_high(void)
+static void image_loader_thread_wait_high()
 {
        g_mutex_lock(image_loader_prio_mutex);
        while (image_loader_prio_num)
index 9304578..fb727c5 100644 (file)
@@ -125,7 +125,7 @@ struct _ImageLoaderClass {
        void (*percent)(ImageLoader *, gdouble, gpointer);
 };
 
-GType image_loader_get_type(void);
+GType image_loader_get_type();
 
 ImageLoader *image_loader_new(FileData *fd);
 
index cebb38b..bd4c607 100644 (file)
@@ -811,7 +811,7 @@ static void image_cache_release_cb(FileData *fd)
        fd->pixbuf = nullptr;
 }
 
-static FileCacheData *image_get_cache(void)
+static FileCacheData *image_get_cache()
 {
        static FileCacheData *cache = nullptr;
        if (!cache) cache = file_cache_new(image_cache_release_cb, 1);
@@ -2071,7 +2071,7 @@ static void image_options_set(ImageWindow *imd)
                                        options->stereo.fixed_x2, options->stereo.fixed_y2);
 }
 
-void image_options_sync(void)
+void image_options_sync()
 {
        GList *work;
 
index b8233ff..12e0a23 100644 (file)
@@ -172,7 +172,7 @@ void image_set_image_as_tiles(ImageWindow *imd, gint width, gint height,
  * @headerfile image_options_sync
  * reset default options
  */
-void image_options_sync(void);
+void image_options_sync();
 
 void image_get_rectangle(gint *x1, gint *y1, gint *x2, gint *y2);
 void image_update_title(ImageWindow *imd);
index dfeb643..6d4ada5 100644 (file)
@@ -1083,7 +1083,7 @@ void view_window_new_from_collection(CollectionData *cd, CollectInfo *info)
  *-----------------------------------------------------------------------------
  */
 
-void view_window_colors_update(void)
+void view_window_colors_update()
 {
        GList *work;
 
index 434d21f..90a539a 100644 (file)
@@ -27,7 +27,7 @@ void view_window_new(FileData *fd);
 void view_window_new_from_list(GList *list);
 void view_window_new_from_collection(CollectionData *cd, CollectInfo *info);
 
-void view_window_colors_update(void);
+void view_window_colors_update();
 
 gboolean view_window_find_image(ImageWindow *imd, gint *index, gint *total);
 
index 20bce29..b1b5ea1 100644 (file)
@@ -283,7 +283,7 @@ static void layout_config_number_cb(GtkTreeViewColumn *UNUSED(tree_column), GtkC
        g_free(buf);
 }
 
-GtkWidget *layout_config_new(void)
+GtkWidget *layout_config_new()
 {
        LayoutConfig *lc;
        GtkWidget *hbox;
index acb47cc..d23f1c0 100644 (file)
@@ -26,7 +26,7 @@
 #include "layout.h"
 
 
-GtkWidget *layout_config_new(void);
+GtkWidget *layout_config_new();
 
 void layout_config_set(GtkWidget *widget, gint style, const gchar *order);
 gchar *layout_config_get(GtkWidget *widget, gint *style);
index dea7ec8..5551c73 100644 (file)
@@ -1937,7 +1937,7 @@ static void layout_menu_recent_update(LayoutWindow *lw)
        gtk_widget_set_sensitive(recent, (n != 0));
 }
 
-void layout_recent_update_all(void)
+void layout_recent_update_all()
 {
        GList *work;
 
@@ -3337,7 +3337,7 @@ static gboolean layout_editors_reload_idle_cb(gpointer UNUSED(data))
        return G_SOURCE_CONTINUE;
 }
 
-void layout_editors_reload_start(void)
+void layout_editors_reload_start()
 {
        DEBUG_1("%s layout_editors_reload_start", get_exec_time());
 
@@ -3351,7 +3351,7 @@ void layout_editors_reload_start(void)
        layout_editors_reload_idle_id = g_idle_add(layout_editors_reload_idle_cb, nullptr);
 }
 
-void layout_editors_reload_finish(void)
+void layout_editors_reload_finish()
 {
        if (layout_editors_reload_idle_id != -1)
                {
@@ -3649,7 +3649,7 @@ void layout_util_status_update_write(LayoutWindow *lw)
                }
 }
 
-void layout_util_status_update_write_all(void)
+void layout_util_status_update_write_all()
 {
        GList *work;
 
index 5b15aa3..7468d7e 100644 (file)
@@ -34,17 +34,17 @@ void layout_util_sync_color(LayoutWindow *lw);
 void layout_util_sync(LayoutWindow *lw);
 
 void layout_util_status_update_write(LayoutWindow *lw);
-void layout_util_status_update_write_all(void);
+void layout_util_status_update_write_all();
 
 //void layout_edit_update_all(void);
 
-void layout_recent_update_all(void);
+void layout_recent_update_all();
 void layout_recent_add_path(const gchar *path);
 
-void layout_copy_path_update_all(void);
+void layout_copy_path_update_all();
 
-void layout_editors_reload_start(void);
-void layout_editors_reload_finish(void);
+void layout_editors_reload_start();
+void layout_editors_reload_finish();
 void layout_actions_setup(LayoutWindow *lw);
 void layout_actions_add_window(LayoutWindow *lw, GtkWidget *window);
 GtkWidget *layout_actions_menu_bar(LayoutWindow *lw);
index 5f53337..d2f3685 100644 (file)
@@ -2006,7 +2006,7 @@ void layout_style_set(LayoutWindow *lw, gint style, const gchar *order)
        file_data_unref(dir_fd);
 }
 
-void layout_colors_update(void)
+void layout_colors_update()
 {
        GList *work;
 
index cf1441c..1fcaabe 100644 (file)
@@ -108,9 +108,9 @@ void layout_status_update(LayoutWindow *lw, const gchar *text);
 
 void layout_style_set(LayoutWindow *lw, gint style, const gchar *order);
 
-void layout_menu_update_edit(void);
-void layout_styles_update(void);
-void layout_colors_update(void);
+void layout_menu_update_edit();
+void layout_styles_update();
+void layout_colors_update();
 
 
 gboolean layout_geometry_get_tools(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h, gint *divider_pos);
index ac6f97f..26a433d 100644 (file)
@@ -827,7 +827,7 @@ static void process_command_line_for_cache_maintenance_option(gint argc, gchar *
 #define RC_HISTORY_NAME "history"
 #define RC_MARKS_NAME "marks"
 
-static void setup_env_path(void)
+static void setup_env_path()
 {
        const gchar *old_path = g_getenv("PATH");
        gchar *path = g_strconcat(gq_bindir, ":", old_path, NULL);
@@ -835,7 +835,7 @@ static void setup_env_path(void)
        g_free(path);
 }
 
-static void keys_load(void)
+static void keys_load()
 {
        gchar *path;
 
@@ -844,7 +844,7 @@ static void keys_load(void)
        g_free(path);
 }
 
-static void keys_save(void)
+static void keys_save()
 {
        gchar *path;
 
@@ -853,7 +853,7 @@ static void keys_save(void)
        g_free(path);
 }
 
-static void marks_load(void)
+static void marks_load()
 {
        gchar *path;
 
@@ -958,12 +958,12 @@ static gboolean gq_accel_map_save(const gchar *path)
        return TRUE;
 }
 
-static gchar *accep_map_filename(void)
+static gchar *accep_map_filename()
 {
        return g_build_filename(get_rc_dir(), "accels", NULL);
 }
 
-static void accel_map_save(void)
+static void accel_map_save()
 {
        gchar *path;
 
@@ -972,7 +972,7 @@ static void accel_map_save(void)
        g_free(path);
 }
 
-static void accel_map_load(void)
+static void accel_map_load()
 {
        gchar *path;
        gchar *pathl;
@@ -984,7 +984,7 @@ static void accel_map_load(void)
        g_free(path);
 }
 
-static void gtkrc_load(void)
+static void gtkrc_load()
 {
        gchar *path;
        gchar *pathl;
@@ -999,7 +999,7 @@ static void gtkrc_load(void)
        g_free(path);
 }
 
-static void exit_program_final(void)
+static void exit_program_final()
 {
        LayoutWindow *lw = nullptr;
        GList *list;
@@ -1079,7 +1079,7 @@ static void exit_confirm_exit_cb(GenericDialog *gd, gpointer UNUSED(data))
        exit_program_final();
 }
 
-static gint exit_confirm_dlg(void)
+static gint exit_confirm_dlg()
 {
        GtkWidget *parent;
        LayoutWindow *lw;
@@ -1121,7 +1121,7 @@ static void exit_program_write_metadata_cb(gint success, const gchar *UNUSED(des
        if (success) exit_program();
 }
 
-void exit_program(void)
+void exit_program()
 {
        layout_image_full_screen_stop(nullptr);
 
@@ -1174,7 +1174,7 @@ static void sigbus_handler_cb(int UNUSED(signum), siginfo_t *info, void *UNUSED(
 //#endif
 //}
 
-static void setup_sig_handler(void)
+static void setup_sig_handler()
 {
        struct sigaction sigsegv_action;
        sigfillset(&sigsegv_action.sa_mask);
index 2112ee3..5d1f4dd 100644 (file)
@@ -168,7 +168,7 @@ extern gchar *instance_identifier;
 void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
 gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
 
-void exit_program(void);
+void exit_program();
 
 #define CASE_SORT(a, b) ( (options->file_sort.case_sensitive) ? strcmp((a), (b)) : strcasecmp((a), (b)) )
 
index 88912bb..1345eab 100644 (file)
@@ -340,7 +340,7 @@ gboolean metadata_write_perform(FileData *fd)
        return success;
 }
 
-gint metadata_queue_length(void)
+gint metadata_queue_length()
 {
        return g_list_length(metadata_write_queue);
 }
@@ -1713,7 +1713,7 @@ void keyword_show_set_in(GtkTreeStore *keyword_tree, gpointer id, GList *keyword
 }
 
 
-void keyword_tree_new(void)
+void keyword_tree_new()
 {
        if (keyword_tree) return;
 
@@ -1728,7 +1728,7 @@ static GtkTreeIter keyword_tree_default_append(GtkTreeStore *keyword_tree, GtkTr
        return iter;
 }
 
-void keyword_tree_new_default(void)
+void keyword_tree_new_default()
 {
        GtkTreeIter i1, i2;
 
index a616d56..18d9b96 100644 (file)
@@ -35,7 +35,7 @@ gboolean metadata_write_perform(FileData *fd);
 gboolean metadata_write_queue_confirm(gboolean force_dialog, FileUtilDoneFunc done_func, gpointer done_data);
 void metadata_notify_cb(FileData *fd, NotifyType type, gpointer data);
 
-gint metadata_queue_length(void);
+gint metadata_queue_length();
 
 gboolean metadata_write_revert(FileData *fd, const gchar *key);
 gboolean metadata_write_list(FileData *fd, const gchar *key, const GList *values);
@@ -105,8 +105,8 @@ void keyword_revert_hidden_in(GtkTreeStore *keyword_tree, gpointer id);
 void keyword_hide_unset_in(GtkTreeStore *keyword_tree, gpointer id, GList *keywords);
 void keyword_show_set_in(GtkTreeStore *keyword_tree, gpointer id, GList *keywords);
 
-void keyword_tree_new_default(void);
-void keyword_tree_new(void);
+void keyword_tree_new_default();
+void keyword_tree_new();
 
 void keyword_tree_write_config(GString *outstr, gint indent);
 GtkTreeIter *keyword_add_from_config(GtkTreeStore *keyword_tree, GtkTreeIter *parent, const gchar **attribute_names, const gchar **attribute_values);
index f7ef81c..9942605 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <langinfo.h>
 
-gdouble get_zoom_increment(void)
+gdouble get_zoom_increment()
 {
        return ((options->image.zoom_increment != 0) ? static_cast<gdouble>(options->image.zoom_increment) / 100.0 : 1.0);
 }
@@ -376,7 +376,7 @@ gchar *get_symbolic_link(const gchar *path_utf8)
        return ret;
 }
 
-gint get_cpu_cores(void)
+gint get_cpu_cores()
 {
     return sysconf(_SC_NPROCESSORS_ONLN);
 }
index f68d4c2..c1a729b 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef MISC_H
 #define MISC_H
 
-gdouble get_zoom_increment(void);
+gdouble get_zoom_increment();
 gchar *utf8_validate_or_convert(const gchar *text);
 gint utf8_compare(const gchar *s1, const gchar *s2, gboolean case_sensitive);
 gchar *expand_tilde(const gchar *filename);
@@ -31,7 +31,7 @@ gint date_get_first_day_of_week();
 gchar *date_get_abbreviated_day_name(gint day);
 gchar *convert_rating_to_stars(gint rating);
 gchar *get_symbolic_link(const gchar *path_utf8);
-gint get_cpu_cores(void);
+gint get_cpu_cores();
 void tree_path_free_wrapper(void *data, void *useradata);
 gchar *open_archive(FileData *fd);
 #endif /* MISC_H */
index a46b254..7f95c77 100644 (file)
@@ -153,7 +153,7 @@ static void pixbuf_renderer_init_wrapper(PixbufRenderer *pr, void *UNUSED(class_
        pixbuf_renderer_init(pr);
 }
 
-GType pixbuf_renderer_get_type(void)
+GType pixbuf_renderer_get_type()
 {
        static GType pixbuf_renderer_type = 0;
 
@@ -483,7 +483,7 @@ static void pixbuf_renderer_finalize(GObject *object)
        pr_source_tile_free_all(pr);
 }
 
-PixbufRenderer *pixbuf_renderer_new(void)
+PixbufRenderer *pixbuf_renderer_new()
 {
        return static_cast<PixbufRenderer *>(g_object_new(TYPE_PIXBUF_RENDERER, nullptr));
 }
index a4a5c97..4143cd4 100644 (file)
@@ -247,9 +247,9 @@ struct _PixbufRendererClass
 
 
 
-GType pixbuf_renderer_get_type(void);
+GType pixbuf_renderer_get_type();
 
-PixbufRenderer *pixbuf_renderer_new(void);
+PixbufRenderer *pixbuf_renderer_new();
 
 void pixbuf_renderer_set_parent(PixbufRenderer *pr, GtkWindow *window);
 GtkWindow *pixbuf_renderer_get_parent(PixbufRenderer *pr);
index 3baac7d..252d0cb 100644 (file)
@@ -210,7 +210,7 @@ static void register_stock_icon(const gchar *key, GdkPixbuf *pixbuf)
 }
 
 
-void pixbuf_inline_register_stock_icons(void)
+void pixbuf_inline_register_stock_icons()
 {
        gint i;
 
index 45aca5b..864271d 100644 (file)
@@ -26,7 +26,7 @@
 gboolean pixbuf_to_file_as_png (GdkPixbuf *pixbuf, const gchar *filename);
 gboolean pixbuf_to_file_as_jpg(GdkPixbuf *pixbuf, const gchar *filename, gint quality);
 
-void pixbuf_inline_register_stock_icons(void);
+void pixbuf_inline_register_stock_icons();
 gboolean register_theme_icon_as_stock(const gchar *key, const gchar *icon);
 
 GdkPixbuf *pixbuf_inline(const gchar *key);
index 89547b2..239b332 100644 (file)
@@ -259,7 +259,7 @@ static gboolean accel_apply_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), G
 }
 
 
-static void config_window_apply(void)
+static void config_window_apply()
 {
        gboolean refresh = FALSE;
 #ifdef HAVE_LCMS2
@@ -1138,7 +1138,7 @@ static void add_video_menu(GtkWidget *table, gint column, gint row, const gchar
        gtk_widget_show(combo);
 }
 
-static void filter_store_populate(void)
+static void filter_store_populate()
 {
        GList *work;
 
@@ -1595,7 +1595,7 @@ static void image_overlay_set_background_colour_cb(GtkWidget *widget, gpointer U
        gtk_widget_destroy(dialog);
 }
 
-static void accel_store_populate(void)
+static void accel_store_populate()
 {
        LayoutWindow *lw;
        GList *groups, *actions;
@@ -2593,7 +2593,7 @@ static void config_tab_osd(GtkWidget *notebook)
        gtk_widget_show(label);
 }
 
-static GtkTreeModel *create_class_model(void)
+static GtkTreeModel *create_class_model()
 {
        GtkListStore *model;
        GtkTreeIter iter;
index 5d6211e..ec59e08 100644 (file)
@@ -1708,7 +1708,7 @@ static void remote_cb(RemoteConnection *UNUSED(rc), const gchar *text, GIOChanne
                }
 }
 
-void remote_help(void)
+void remote_help()
 {
        gint i;
        gchar *s_opt_param;
index 2f4114a..5e72b19 100644 (file)
@@ -42,7 +42,7 @@ struct RemoteConnection {
 
 void remote_close(RemoteConnection *rc);
 GList *remote_build_list(GList *list, gint argc, gchar *argv[], GList **errors);
-void remote_help(void);
+void remote_help();
 void remote_control(const gchar *arg_exec, GList *remote_list, const gchar *path,
                    GList *cmd_list, GList *collection_list);
 
index 24f4703..b00c2ed 100644 (file)
@@ -66,7 +66,7 @@ void image_sim_alternate_set(gboolean enable)
        //return alternate_enabled;
 //}
 
-ImageSimilarityData *image_sim_new(void)
+ImageSimilarityData *image_sim_new()
 {
        auto sd = g_new0(ImageSimilarityData, 1);
 
index e65ce5a..6e8ad6c 100644 (file)
@@ -33,7 +33,7 @@ struct ImageSimilarityData
 };
 
 
-ImageSimilarityData *image_sim_new(void);
+ImageSimilarityData *image_sim_new();
 void image_sim_free(ImageSimilarityData *sd);
 
 void image_sim_fill_data(ImageSimilarityData *sd, GdkPixbuf *pixbuf);
@@ -44,7 +44,7 @@ gdouble image_sim_compare_fast(ImageSimilarityData *a, ImageSimilarityData *b, g
 
 
 void image_sim_alternate_set(gboolean enable);
-gboolean image_sim_alternate_enabled(void);
+gboolean image_sim_alternate_enabled();
 void image_sim_alternate_processing(ImageSimilarityData *sd);
 
 
index 310a9c8..054dd9b 100644 (file)
@@ -98,7 +98,7 @@ static gint file_util_safe_number(gint64 free_space)
        return n;
 }
 
-void file_util_trash_clear(void)
+void file_util_trash_clear()
 {
        file_util_safe_number(-1);
 }
@@ -206,7 +206,7 @@ gboolean file_util_safe_unlink(const gchar *path)
        return success;
 }
 
-gchar *file_util_safe_delete_status(void)
+gchar *file_util_safe_delete_status()
 {
        gchar *buf = nullptr;
 
index f77084d..2e234fb 100644 (file)
@@ -21,9 +21,9 @@
 
 #include "ui-utildlg.h"
 
-void file_util_trash_clear(void);
+void file_util_trash_clear();
 gboolean file_util_safe_unlink(const gchar *path);
-gchar *file_util_safe_delete_status(void);
+gchar *file_util_safe_delete_status();
 
 #endif /* TRASH_H */
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
index 617dc0d..b58c194 100644 (file)
@@ -174,7 +174,7 @@ gchar *path_from_utf8(const gchar *utf8)
 }
 
 /* first we try the HOME environment var, if that doesn't work, we try g_get_homedir(). */
-const gchar *homedir(void)
+const gchar *homedir()
 {
        static gchar *home = nullptr;
 
@@ -203,7 +203,7 @@ static gchar *xdg_dir_get(const gchar *key, const gchar *fallback)
        return path_to_utf8(dir);
 }
 
-const gchar *xdg_data_home_get(void)
+const gchar *xdg_data_home_get()
 {
        static const gchar *xdg_data_home = nullptr;
 
@@ -214,7 +214,7 @@ const gchar *xdg_data_home_get(void)
        return xdg_data_home;
 }
 
-const gchar *xdg_config_home_get(void)
+const gchar *xdg_config_home_get()
 {
        static const gchar *xdg_config_home = nullptr;
 
@@ -225,7 +225,7 @@ const gchar *xdg_config_home_get(void)
        return xdg_config_home;
 }
 
-const gchar *xdg_cache_home_get(void)
+const gchar *xdg_cache_home_get()
 {
        static const gchar *xdg_cache_home = nullptr;
 
@@ -236,7 +236,7 @@ const gchar *xdg_cache_home_get(void)
        return xdg_cache_home;
 }
 
-const gchar *get_rc_dir(void)
+const gchar *get_rc_dir()
 {
        static gchar *rc_dir = nullptr;
 
@@ -254,7 +254,7 @@ const gchar *get_rc_dir(void)
        return rc_dir;
 }
 
-const gchar *get_collections_dir(void)
+const gchar *get_collections_dir()
 {
        static gchar *collections_dir = nullptr;
 
@@ -272,7 +272,7 @@ const gchar *get_collections_dir(void)
        return collections_dir;
 }
 
-const gchar *get_trash_dir(void)
+const gchar *get_trash_dir()
 {
        static gchar *trash_dir = nullptr;
 
@@ -290,7 +290,7 @@ const gchar *get_trash_dir(void)
        return trash_dir;
 }
 
-const gchar *get_window_layouts_dir(void)
+const gchar *get_window_layouts_dir()
 {
        static gchar *window_layouts_dir = nullptr;
 
@@ -709,7 +709,7 @@ gboolean rename_file(const gchar *s, const gchar *t)
        return ret;
 }
 
-gchar *get_current_dir(void)
+gchar *get_current_dir()
 {
        gchar *pathl;
        gchar *path8;
index cbff451..0cdaed2 100644 (file)
@@ -48,14 +48,14 @@ gchar *path_to_utf8(const gchar *path);
 gchar *path_from_utf8(const gchar *utf8);
 #endif
 
-const gchar *xdg_data_home_get(void);
-const gchar *xdg_config_home_get(void);
-const gchar *xdg_cache_home_get(void);
-const gchar *homedir(void);
-const gchar *get_rc_dir(void);
-const gchar *get_collections_dir(void);
-const gchar *get_trash_dir(void);
-const gchar *get_window_layouts_dir(void);
+const gchar *xdg_data_home_get();
+const gchar *xdg_config_home_get();
+const gchar *xdg_cache_home_get();
+const gchar *homedir();
+const gchar *get_rc_dir();
+const gchar *get_collections_dir();
+const gchar *get_trash_dir();
+const gchar *get_window_layouts_dir();
 
 gboolean stat_utf8(const gchar *s, struct stat *st);
 gboolean lstat_utf8(const gchar *s, struct stat *st);
@@ -77,7 +77,7 @@ gboolean copy_file_attributes(const gchar *s, const gchar *t, gint perms, gint m
 gboolean copy_file(const gchar *s, const gchar *t);
 gboolean move_file(const gchar *s, const gchar *t);
 gboolean rename_file(const gchar *s, const gchar *t);
-gchar *get_current_dir(void);
+gchar *get_current_dir();
 
 /**
  * @headerfile string_list_free
index d663635..bee3e10 100644 (file)
@@ -352,7 +352,7 @@ static void popup_menu_short_lived_cb(GtkWidget *UNUSED(widget), gpointer data)
        g_object_unref(G_OBJECT(data));
 }
 
-GtkWidget *popup_menu_short_lived(void)
+GtkWidget *popup_menu_short_lived()
 {
        GtkWidget *menu;
 
index ad3895b..6f1c38a 100644 (file)
@@ -44,7 +44,7 @@ void menu_item_add_divider(GtkWidget *menu);
 GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label,
                                GCallback func, gpointer data);
 
-GtkWidget *popup_menu_short_lived(void);
+GtkWidget *popup_menu_short_lived();
 
 /**
  * @headerfile popup_menu_position_clamp
index 8c05a3c..733c576 100644 (file)
@@ -1030,7 +1030,7 @@ static void date_selection_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
        g_free(ds);
 }
 
-GtkWidget *date_selection_new(void)
+GtkWidget *date_selection_new()
 {
        DateSelection *ds;
        GtkWidget *arrow;
index c7a36d3..50a5fb6 100644 (file)
@@ -190,7 +190,7 @@ void pref_toolbar_button_set_icon(GtkWidget *button, GtkWidget *widget, const gc
 GtkWidget *pref_toolbar_spacer(GtkWidget *toolbar);
 
 
-GtkWidget *date_selection_new(void);
+GtkWidget *date_selection_new();
 
 void date_selection_set(GtkWidget *widget, gint day, gint month, gint year);
 void date_selection_get(GtkWidget *widget, gint *day, gint *month, gint *year);