Mercurial > geeqie.yaz
changeset 609:b690cecbf5b8
Use function(void) instead of function() for declaring functions which
do not take any parameters at all.
It respects current Geeqie coding style more.
author | zas_ |
---|---|
date | Fri, 09 May 2008 07:32:30 +0000 |
parents | be8b2516359d |
children | 33a375d16181 |
files | src/color-man.c src/exiv2.cc src/filefilter.c src/filefilter.h src/histogram.c src/histogram.h src/lirc.c |
diffstat | 7 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/color-man.c Thu May 08 22:59:14 2008 +0000 +++ b/src/color-man.c Fri May 09 07:32:30 2008 +0000 @@ -60,7 +60,7 @@ cmsErrorAction(LCMS_ERROR_IGNORE); } -static cmsHPROFILE color_man_create_adobe_comp() +static cmsHPROFILE color_man_create_adobe_comp(void) { /* ClayRGB1998 is AdobeRGB compatible */ #include "ClayRGB1998_icc.h"
--- a/src/exiv2.cc Thu May 08 22:59:14 2008 +0000 +++ b/src/exiv2.cc Fri May 09 07:32:30 2008 +0000 @@ -707,7 +707,7 @@ delete cr2Header; } -RawFile::~RawFile() +RawFile::~RawFile(void) { if (map_data && munmap(map_data, map_len) == -1) { @@ -729,7 +729,7 @@ return NULL; } -unsigned long RawFile::preview_offset() +unsigned long RawFile::preview_offset(void) { const Value *val; if (offset) return offset;
--- a/src/filefilter.c Thu May 08 22:59:14 2008 +0000 +++ b/src/filefilter.c Fri May 09 07:32:30 2008 +0000 @@ -470,7 +470,7 @@ secure_fprintf(ssi, "sidecar.ext: \"%s\"\n", sidecar_ext_to_string()); } -char *sidecar_ext_to_string() +gchar *sidecar_ext_to_string(void) { GList *work; GString *str = g_string_new(""); @@ -486,7 +486,7 @@ return g_string_free(str, FALSE); } -void sidecar_ext_add_defaults() +void sidecar_ext_add_defaults(void) { sidecar_ext_parse(".jpg;.cr2;.nef;.crw;.xmp", FALSE); }
--- a/src/filefilter.h Thu May 08 22:59:14 2008 +0000 +++ b/src/filefilter.h Fri May 09 07:32:30 2008 +0000 @@ -43,8 +43,8 @@ void sidecar_ext_parse(const gchar *text, gint quoted); void sidecar_ext_write(SecureSaveInfo *ssi); -char *sidecar_ext_to_string(); -void sidecar_ext_add_defaults(); +gchar *sidecar_ext_to_string(void); +void sidecar_ext_add_defaults(void); GList *sidecar_ext_get_list(void); gint ishidden(const gchar *name);
--- a/src/histogram.c Thu May 08 22:59:14 2008 +0000 +++ b/src/histogram.c Fri May 09 07:32:30 2008 +0000 @@ -32,7 +32,7 @@ }; -Histogram *histogram_new() +Histogram *histogram_new(void) { Histogram *histogram;
--- a/src/histogram.h Thu May 08 22:59:14 2008 +0000 +++ b/src/histogram.h Fri May 09 07:32:30 2008 +0000 @@ -23,7 +23,7 @@ #define HCHAN_COUNT (HCHAN_MAX+1) -Histogram *histogram_new(); +Histogram *histogram_new(void); void histogram_free(Histogram *histogram); gint histogram_set_channel(Histogram *histogram, gint chan); gint histogram_get_channel(Histogram *histogram);